Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed May 9, 2024
1 parent 7bec5b4 commit 8353e1d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,29 @@ jobs:
matrix:
settings:
- host: macos-latest
name: darwin-x64
target: x86_64-apple-darwin
build: |
yarn build
strip -x *.node
- host: windows-latest
name: win32-x64-msvc
build: yarn build
target: x86_64-pc-windows-msvc
- host: windows-latest
target: i686-pc-windows-msvc
name: win32-ia32-msvc
build: yarn build --target i686-pc-windows-msvc
- host: ubuntu-latest
name: linux-x64-gnu
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: |-
set -e &&
yarn build --target x86_64-unknown-linux-gnu &&
strip *.node
- host: ubuntu-latest
name: linux-x64-musl
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: set -e && yarn build && strip *.node
Expand All @@ -70,10 +74,12 @@ jobs:
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
- host: macos-latest
target: aarch64-apple-darwin
name: darwin-arm64
build: |
yarn build --target aarch64-apple-darwin
strip -x *.node
- host: windows-latest
name: win32-arm64-msvc
target: aarch64-pc-windows-msvc
build: yarn build --target aarch64-pc-windows-msvc
name: stable - ${{ matrix.settings.target }} - node@18
Expand Down Expand Up @@ -140,8 +146,10 @@ jobs:
settings:
- host: macos-latest
target: x86_64-apple-darwin
name: darwin-x64
- host: windows-latest
target: x86_64-pc-windows-msvc
name: win32-x64-msvc
node:
- '16'
- '18'
Expand All @@ -159,7 +167,7 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: bindings-${{ matrix.settings.target }}
name: ${{ env.APP_NAME }}.${{ matrix.settings.name }}.node
path: .
- name: List packages
run: ls -R .
Expand Down

0 comments on commit 8353e1d

Please sign in to comment.