File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,14 @@ jobs:
173
173
export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
174
174
rustup toolchain install $(cat ../../rust-toolchain) &&
175
175
rustup target add aarch64-unknown-linux-musl &&
176
- RUSTFLAGS='-C target-feature=+crt-static -C link-arg=-lgcc' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-unknown-linux-musl &&
177
- rm -rf target/release/.cargo-lock &&
178
- cp ../../bindings/target/aarch64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
179
- env RUSTFLAGS='-C target-feature=-crt-static' yarn build --target=aarch64-unknown-linux-musl
176
+ if [[ ${{ inputs.package }} == "core" ]]; then
177
+ RUSTFLAGS='-C target-feature=+crt-static -C link-arg=-lgcc' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-unknown-linux-musl &&
178
+ rm -rf target/release/.cargo-lock &&
179
+ cp ../../bindings/target/aarch64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
180
+ env RUSTFLAGS='-C target-feature=-crt-static' yarn build --target=aarch64-unknown-linux-musl
181
+ else
182
+ env RUSTFLAGS='-C target-feature=-crt-static' yarn build --target=aarch64-unknown-linux-musl
183
+ fi
180
184
- host : windows-latest
181
185
target : aarch64-pc-windows-msvc
182
186
# Disable `LTO` and increase `codegen-units` to avoid llvm `OOM` on GitHub Actions.
You can’t perform that action at this time.
0 commit comments