Skip to content

Commit bfc79e9

Browse files
authored
Fix: release build failed (#45)
* fix: ci * fix: ci * fix: test aarch64-unknown-linux-gnu * fix: update ci
1 parent e482b00 commit bfc79e9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
name: darwin-x64
2929
target: x86_64-apple-darwin
3030
build: |
31-
cd crates/node_binding
31+
cd crates/node_binding &&
32+
rustup target add x86_64-apple-darwin &&
3233
pnpm build --target x86_64-apple-darwin
3334
strip -x *.node
3435
- host: macos-latest
@@ -48,13 +49,15 @@ jobs:
4849
target: aarch64-pc-windows-msvc
4950
name: win32-arm64-msvc
5051
build: |
51-
cd crates/node_binding
52+
cd crates/node_binding &&
53+
rustup target add aarch64-pc-windows-msvc &&
5254
pnpm build --target aarch64-pc-windows-msvc
5355
- host: windows-latest
5456
target: i686-pc-windows-msvc
5557
name: win32-ia32-msvc
5658
build: |
57-
cd crates/node_binding
59+
cd crates/node_binding &&
60+
rustup target add i686-pc-windows-msvc &&
5861
pnpm build --target i686-pc-windows-msvc
5962
- host: ubuntu-latest
6063
target: x86_64-unknown-linux-gnu
@@ -78,7 +81,7 @@ jobs:
7881
build: |-
7982
set -e &&
8083
cd crates/node_binding &&
81-
export JEMALLOC_SYS_WITH_LG_PAGE=16 && export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
84+
export JEMALLOC_SYS_WITH_LG_PAGE=16 && export CC_aarch64_unknown_linux_gnu=clang &&
8285
rustup target add aarch64-unknown-linux-gnu &&
8386
pnpm build --target aarch64-unknown-linux-gnu &&
8487
aarch64-unknown-linux-gnu-strip *.node
@@ -108,7 +111,7 @@ jobs:
108111
uses: dtolnay/rust-toolchain@stable
109112
if: ${{ !matrix.settings.docker }}
110113
with:
111-
toolchain: nightly-2023-12-28
114+
toolchain: nightly-2024-09-05
112115
targets: ${{ matrix.settings.target }}
113116

114117
- name: Cache cargo

0 commit comments

Comments
 (0)