@@ -124,9 +124,11 @@ jobs:
124
124
export CXX=$(xcrun -f clang++);
125
125
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
126
126
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
127
- cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-apple-darwin
128
- cp ../../bindings/target/aarch64-apple-darwin/release/swc .
129
- chmod +x ./swc
127
+ if [[ ${{ inputs.package }} == "core" ]]; then
128
+ cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-apple-darwin
129
+ cp ../../bindings/target/aarch64-apple-darwin/release/swc .
130
+ chmod +x ./swc
131
+ fi
130
132
yarn build --target aarch64-apple-darwin
131
133
- host : ubuntu-latest
132
134
target : aarch64-unknown-linux-gnu
@@ -169,9 +171,13 @@ jobs:
169
171
export DISABLE_PLUGIN_E2E_TESTS=true
170
172
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=256
171
173
export CARGO_PROFILE_RELEASE_LTO=false
172
- cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --target aarch64-pc-windows-msvc
173
- cp ../../bindings/target/aarch64-pc-windows-msvc/release/swc.exe .
174
- yarn build --target aarch64-pc-windows-msvc --no-default-features --features swc_v1
174
+ if [[ ${{ inputs.package }} == "core" ]]; then
175
+ cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --target aarch64-pc-windows-msvc
176
+ cp ../../bindings/target/aarch64-pc-windows-msvc/release/swc.exe .
177
+ yarn build --target aarch64-pc-windows-msvc --no-default-features --features swc_v1
178
+ else
179
+ yarn build --target aarch64-pc-windows-msvc
180
+ fi
175
181
name : " Build ${{ inputs.package }} - ${{ matrix.settings.target }} - node@20"
176
182
runs-on : ${{ matrix.settings.host }}
177
183
steps :
0 commit comments