Skip to content

Commit

Permalink
Update napi2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Jan 24, 2024
1 parent f63703c commit d8a0f1a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/napi2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ jobs:
build: |
yarn build
strip -x *.node
- host: windows-latest
build: yarn build
target: x86_64-pc-windows-msvc

- host: windows-latest
build: |
yarn build --target i686-pc-windows-msvc
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
Expand All @@ -42,10 +45,12 @@ jobs:
cd ./languages/node &&
yarn build --target x86_64-unknown-linux-gnu &&
strip *.node
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: set -e && cd ./languages/node && yarn build && strip *.node

- host: macos-latest
target: aarch64-apple-darwin
build: |
Expand Down Expand Up @@ -86,9 +91,10 @@ jobs:
rustup target add aarch64-unknown-linux-musl &&
cd ./languages/node &&
yarn build --target aarch64-unknown-linux-musl
- host: windows-latest
target: aarch64-pc-windows-msvc
build: yarn build --target aarch64-pc-windows-msvc
#- host: windows-latest
# target: aarch64-pc-windows-msvc
# build: yarn build --target aarch64-pc-windows-msvc
name: stable - ${{ matrix.settings.target }} - node@18
runs-on: ${{ matrix.settings.host }}
steps:
Expand Down Expand Up @@ -148,7 +154,7 @@ jobs:
if: ${{ !matrix.settings.docker }}
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: bindings-${{ matrix.settings.target }}
path: ${{ github.workspace }}/languages/node/infisical.*.node
Expand All @@ -168,7 +174,7 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: languages/node/artifacts

Expand Down

0 comments on commit d8a0f1a

Please sign in to comment.