Skip to content

Commit f58fc1f

Browse files
authored
fix(ci): restore pack release musl ci RUSTFLAGS inject (#2180)
1 parent f851250 commit f58fc1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pack-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: utoopack-release
33
on:
44
release:
55
types: [published]
6-
76
jobs:
87
build:
98
if: startsWith(github.event.release.tag_name, 'utoopack-v')
@@ -23,8 +22,10 @@ jobs:
2322
- host: ubuntu-latest
2423
target: aarch64-unknown-linux-gnu
2524
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
25+
# Note: export RUSTFLAGS for musl need inject especially: https://github.com/utooland/utoo/pull/1980
2626
build: |
2727
rustup target add aarch64-unknown-linux-gnu &&
28+
export RUSTFLAGS='--cfg tokio_unstable -Zshare-generics=y -Zthreads=8 -Zunstable-options -Csymbol-mangling-version=v0 -Clinker-flavor=gnu-lld-cc -Clink-self-contained=+linker' &&
2829
npm run build:binding --workspace=@utoo/pack -- --target aarch64-unknown-linux-gnu
2930
- host: ubuntu-latest
3031
target: aarch64-unknown-linux-musl
@@ -45,6 +46,7 @@ jobs:
4546
- host: ubuntu-latest
4647
target: x86_64-unknown-linux-musl
4748
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
49+
# Note: export RUSTFLAGS for musl need inject especially: https://github.com/utooland/utoo/pull/1980
4850
build: |
4951
set -ex &&
5052
rm /etc/apk/repositories &&
@@ -53,6 +55,7 @@ jobs:
5355
apk update &&
5456
apk add --no-cache libc6-compat pkgconfig dav1d libdav1d dav1d-dev clang-static llvm-dev &&
5557
rustup target add x86_64-unknown-linux-musl &&
58+
export RUSTFLAGS='--cfg tokio_unstable -Zshare-generics=y -Zthreads=8 -Zunstable-options -Csymbol-mangling-version=v0 -Clinker-flavor=gnu-lld-cc -Clink-self-contained=+linker' &&
5659
npm run build:binding --workspace=@utoo/pack -- --target x86_64-unknown-linux-musl
5760
# swc_plugin_runner not supported on aarch64 windows now
5861
# - host: windows-latest

0 commit comments

Comments
 (0)