Skip to content

Commit

Permalink
update actoins
Browse files Browse the repository at this point in the history
  • Loading branch information
lukejmann committed Feb 1, 2024
1 parent 3f05df9 commit fb1f30c
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/napi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,64 +27,63 @@ jobs:
settings:
- host: macos-latest
target: x86_64-apple-darwin
build: CARGO_TARGET_DIR=$(pwd)/target yarn build
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build
- host: windows-latest
build: CARGO_TARGET_DIR=$(pwd)/target yarn build
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build
target: x86_64-pc-windows-msvc
- host: windows-latest
build: |
CARGO_TARGET_DIR=$(pwd)/target yarn build --target i686-pc-windows-msvc
cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target i686-pc-windows-msvc
yarn test
target: i686-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: CARGO_TARGET_DIR=$(pwd)/target yarn build --target x86_64-unknown-linux-gnu
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target x86_64-unknown-linux-gnu
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: CARGO_TARGET_DIR=$(pwd)/target yarn build
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build
- host: macos-latest
target: aarch64-apple-darwin
build: CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-apple-darwinS
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-apple-darwin
- host: ubuntu-latest
target: aarch64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
build: CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-unknown-linux-gnu
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-unknown-linux-gnu
- host: ubuntu-latest
target: armv7-unknown-linux-gnueabihf
setup: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf -y
build: CARGO_TARGET_DIR=$(pwd)/target yarn build --target armv7-unknown-linux-gnueabihf
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target armv7-unknown-linux-gnueabihf
- host: ubuntu-latest
target: aarch64-linux-android
build: CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-linux-android
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-linux-android
- host: ubuntu-latest
target: armv7-linux-androideabi
build: CARGO_TARGET_DIR=$(pwd)/target yarn build --target armv7-linux-androideabi
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target armv7-linux-androideabi
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: |-
set -e &&
rustup target add aarch64-unknown-linux-musl &&
CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-unknown-linux-musl
cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-unknown-linux-musl
- host: windows-latest
target: aarch64-pc-windows-msvc
build: CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-pc-windows-msvc
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target aarch64-pc-windows-msvc
- host: ubuntu-latest
target: riscv64gc-unknown-linux-gnu
setup: |
sudo apt-get update
sudo apt-get install gcc-riscv64-linux-gnu -y
build: CARGO_TARGET_DIR=$(pwd)/target yarn build --target riscv64gc-unknown-linux-gnu
build: cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build --target riscv64gc-unknown-linux-gnu
name: stable - ${{ matrix.settings.target }} - node@20
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
- name: Setup node
working-directory: walletkit-napi
uses: actions/setup-node@v4
if: ${{ !matrix.settings.docker }}
with:
Expand Down Expand Up @@ -180,7 +179,7 @@ jobs:
env
freebsd-version
yarn install
CARGO_TARGET_DIR=$(pwd)/target yarn build
cd walletkit-napi && CARGO_TARGET_DIR=$(pwd)/target yarn build
yarn test
rm -rf node_modules
rm -rf target
Expand Down Expand Up @@ -210,7 +209,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup node
working-directory: walletkit-napi
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand Down Expand Up @@ -241,7 +239,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup node
working-directory: walletkit-napi
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand Down Expand Up @@ -272,7 +269,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup node
working-directory: walletkit-napi
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand Down Expand Up @@ -411,7 +407,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup node
working-directory: walletkit-napi
uses: actions/setup-node@v4
with:
node-version: 20
Expand Down

0 comments on commit fb1f30c

Please sign in to comment.