Skip to content

Commit

Permalink
fix: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed May 8, 2024
1 parent 95145fd commit 0a662ec
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -81,7 +81,7 @@ jobs:
export JEMALLOC_SYS_WITH_LG_PAGE=16 && export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
rustup target add aarch64-unknown-linux-gnu &&
pnpm build --target aarch64-unknown-linux-gnu &&
strip *.node
aarch64-unknown-linux-gnu-strip *.node
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
name: linux-arm64-musl
Expand All @@ -92,7 +92,7 @@ jobs:
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-musl-gcc &&
rustup target add aarch64-unknown-linux-musl &&
pnpm build --target aarch64-unknown-linux-musl &&
strip *.node
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
name: stable - ${{ matrix.settings.target }} - node@18
runs-on: ${{ matrix.settings.host }}
steps:
Expand Down

0 comments on commit 0a662ec

Please sign in to comment.