diff --git a/.github/workflows/napi.yml b/.github/workflows/napi.yml index d68bcb4c..c516a896 100644 --- a/.github/workflows/napi.yml +++ b/.github/workflows/napi.yml @@ -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: @@ -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 @@ -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 }} @@ -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 }} @@ -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 }} @@ -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