@@ -116,10 +116,14 @@ jobs:
116
116
build : >-
117
117
set -e &&
118
118
export CARGO_PROFILE_RELEASE_LTO=false &&
119
- RUSTFLAGS='-C target-feature=+sse2' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-unknown-linux-musl &&
120
- rm -rf target/release/.cargo-lock &&
121
- cp ../../bindings/target/x86_64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
122
- RUSTFLAGS='-C target-feature=+sse2 -C target-feature=-crt-static' yarn build --target x86_64-unknown-linux-musl
119
+ if [[ ${{ inputs.package }} == "core" ]]; then
120
+ RUSTFLAGS='-C target-feature=+sse2' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-unknown-linux-musl &&
121
+ rm -rf target/release/.cargo-lock &&
122
+ cp ../../bindings/target/x86_64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
123
+ RUSTFLAGS='-C target-feature=+sse2 -C target-feature=-crt-static' yarn build --target x86_64-unknown-linux-musl
124
+ else
125
+ RUSTFLAGS='-C target-feature=+sse2 -C target-feature=-crt-static' yarn build --target x86_64-unknown-linux-musl
126
+ fi
123
127
- host : macos-latest
124
128
target : aarch64-apple-darwin
125
129
build : |
@@ -141,10 +145,15 @@ jobs:
141
145
set -e &&
142
146
export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
143
147
rustup target add aarch64-unknown-linux-gnu &&
144
- RUSTFLAGS='' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-unknown-linux-gnu &&
145
- cp ../../bindings/target/aarch64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
146
- export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
147
- yarn build --target aarch64-unknown-linux-gnu
148
+ if [[ ${{ inputs.package }} == "core" ]]; then
149
+ RUSTFLAGS='' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-unknown-linux-gnu &&
150
+ cp ../../bindings/target/aarch64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
151
+ export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
152
+ yarn build --target aarch64-unknown-linux-gnu
153
+ else
154
+ export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
155
+ yarn build --target aarch64-unknown-linux-gnu
156
+ fi
148
157
- host : ubuntu-latest
149
158
target : armv7-unknown-linux-gnueabihf
150
159
build : |
0 commit comments