From 483a67021e0322c7761775f5bbefdae5648b8ca8 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Wed, 8 May 2024 19:53:29 +0800 Subject: [PATCH] fix: test case --- .github/workflows/release.yml | 96 +++++++++++++++++------------------ 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1932b8d..27ccee0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,53 +24,53 @@ jobs: fail-fast: false matrix: settings: - # - host: macos-latest - # name: darwin-x64 - # target: x86_64-apple-darwin - # build: | - # cd crates/node_binding - # pnpm build --target x86_64-apple-darwin - # strip -x *.node - # - host: macos-latest - # name: darwin-arm64 - # target: aarch64-apple-darwin - # build: | - # cd crates/node_binding - # pnpm build --target aarch64-apple-darwin - # strip -x *.node - # - host: windows-latest - # name: win32-x64-msvc - # target: x86_64-pc-windows-msvc - # build: | - # cd crates/node_binding - # pnpm build --target x86_64-pc-windows-msvc - # - host: windows-latest - # target: aarch64-pc-windows-msvc - # name: win32-arm64-msvc - # build: | - # cd crates/node_binding - # pnpm build --target aarch64-pc-windows-msvc - # - host: windows-latest - # target: i686-pc-windows-msvc - # name: win32-ia32-msvc - # build: | - # cd crates/node_binding - # pnpm build --target i686-pc-windows-msvc - # - host: ubuntu-latest - # target: x86_64-unknown-linux-gnu - # name: linux-x64-gnu - # docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian - # build: |- - # set -e && - # cd crates/node_binding && - # unset CC_x86_64_unknown_linux_gnu && unset CC && - # pnpm 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: cd crates/node_binding && set -e && pnpm build && strip *.node + - host: macos-latest + name: darwin-x64 + target: x86_64-apple-darwin + build: | + cd crates/node_binding + pnpm build --target x86_64-apple-darwin + strip -x *.node + - host: macos-latest + name: darwin-arm64 + target: aarch64-apple-darwin + build: | + cd crates/node_binding + pnpm build --target aarch64-apple-darwin + strip -x *.node + - host: windows-latest + name: win32-x64-msvc + target: x86_64-pc-windows-msvc + build: | + cd crates/node_binding + pnpm build --target x86_64-pc-windows-msvc + - host: windows-latest + target: aarch64-pc-windows-msvc + name: win32-arm64-msvc + build: | + cd crates/node_binding + pnpm build --target aarch64-pc-windows-msvc + - host: windows-latest + target: i686-pc-windows-msvc + name: win32-ia32-msvc + build: | + cd crates/node_binding + pnpm build --target i686-pc-windows-msvc + - host: ubuntu-latest + target: x86_64-unknown-linux-gnu + name: linux-x64-gnu + docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian + build: |- + set -e && + cd crates/node_binding && + unset CC_x86_64_unknown_linux_gnu && unset CC && + pnpm 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: cd crates/node_binding && set -e && pnpm build && strip *.node - host: ubuntu-latest target: aarch64-unknown-linux-gnu name: linux-arm64-gnu @@ -122,7 +122,7 @@ jobs: target/ key: ${{ matrix.settings.target }}-cargo-${{ matrix.settings.host }} - uses: goto-bus-stop/setup-zig@v2 - if: ${{ matrix.settings.target == 'armv7-unknown-linux-gnueabihf' }} + if: ${{ matrix.settings.target == 'armv7-unknown-linux-gnueabihf' || matrix.settings.target == 'aarch64-unknown-linux-gnu' || matrix.settings.target == 'aarch64-unknown-linux-musl' }} with: version: 0.10.1