Skip to content

Commit

Permalink
Fix: release build failed (#45)
Browse files Browse the repository at this point in the history
* fix: ci

* fix: ci

* fix: test aarch64-unknown-linux-gnu

* fix: update ci
  • Loading branch information
ClarkXia authored Jan 9, 2025
1 parent e482b00 commit bfc79e9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
name: darwin-x64
target: x86_64-apple-darwin
build: |
cd crates/node_binding
cd crates/node_binding &&
rustup target add x86_64-apple-darwin &&
pnpm build --target x86_64-apple-darwin
strip -x *.node
- host: macos-latest
Expand All @@ -48,13 +49,15 @@ jobs:
target: aarch64-pc-windows-msvc
name: win32-arm64-msvc
build: |
cd crates/node_binding
cd crates/node_binding &&
rustup target add aarch64-pc-windows-msvc &&
pnpm build --target aarch64-pc-windows-msvc
- host: windows-latest
target: i686-pc-windows-msvc
name: win32-ia32-msvc
build: |
cd crates/node_binding
cd crates/node_binding &&
rustup target add i686-pc-windows-msvc &&
pnpm build --target i686-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
Expand All @@ -78,7 +81,7 @@ jobs:
build: |-
set -e &&
cd crates/node_binding &&
export JEMALLOC_SYS_WITH_LG_PAGE=16 && export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
export JEMALLOC_SYS_WITH_LG_PAGE=16 && export CC_aarch64_unknown_linux_gnu=clang &&
rustup target add aarch64-unknown-linux-gnu &&
pnpm build --target aarch64-unknown-linux-gnu &&
aarch64-unknown-linux-gnu-strip *.node
Expand Down Expand Up @@ -108,7 +111,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable
if: ${{ !matrix.settings.docker }}
with:
toolchain: nightly-2023-12-28
toolchain: nightly-2024-09-05
targets: ${{ matrix.settings.target }}

- name: Cache cargo
Expand Down

0 comments on commit bfc79e9

Please sign in to comment.