Skip to content

Commit 55f7d1e

Browse files
committed
More branching
1 parent d012244 commit 55f7d1e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/publish-npm-package.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,11 @@ jobs:
124124
export CXX=$(xcrun -f clang++);
125125
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
126126
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
130132
yarn build --target aarch64-apple-darwin
131133
- host: ubuntu-latest
132134
target: aarch64-unknown-linux-gnu
@@ -169,9 +171,13 @@ jobs:
169171
export DISABLE_PLUGIN_E2E_TESTS=true
170172
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=256
171173
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
175181
name: "Build ${{ inputs.package }} - ${{ matrix.settings.target }} - node@20"
176182
runs-on: ${{ matrix.settings.host }}
177183
steps:

0 commit comments

Comments
 (0)