Skip to content

Commit

Permalink
Merge branch 'main' of github.com:rubickCenter/native
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Oct 16, 2023
2 parents 917cf2a + 861d6f1 commit 546f6c2
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:
- uses: jirutka/setup-alpine@v1
with:
arch: ${{ matrix.settings.arch }}
volumes: ~/.cargo:~/.cargo
- name: Cache cargo
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -156,6 +157,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
addon/.cargo-cache
addon/target/
key: aarch64-unknown-linux-gnu-cargo-ubuntu-latest
- uses: uraimo/run-on-arch-action@v2
name: Build artifact
with:
Expand All @@ -164,16 +175,16 @@ jobs:
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/addon"
install: |
--volume "~/.cargo:/root/.cargo"
run: |
set -e &&
apt-get update &&
apt-get install nodejs npm libxdo-dev uuid-dev libc-dev pkg-config libglib2.0-dev libgtk-3-dev libgtk2.0-dev libpango1.0-dev libcairo2-dev libfontconfig1-dev -y &&
npm install n -g &&
n stable &&
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh /dev/stdin -y &&
source $HOME/.cargo/env &&
rustup target add aarch64-unknown-linux-gnu
run: |
rustup target add aarch64-unknown-linux-gnu &&
cd /addon/addon &&
npm install &&
PKG_CONFIG_SYSROOT_DIR=/ CARGO_BUILD_TARGET=aarch64-unknown-linux-gnu npm run build &&
Expand Down

0 comments on commit 546f6c2

Please sign in to comment.