From 897f74cd2359dad5b0d25e874c2ce666e95e5afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 20 Aug 2024 13:35:29 +0900 Subject: [PATCH] branch? --- .github/workflows/publish-npm-package.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-npm-package.yml b/.github/workflows/publish-npm-package.yml index 021286899f32..b66c24e6d0f1 100644 --- a/.github/workflows/publish-npm-package.yml +++ b/.github/workflows/publish-npm-package.yml @@ -104,7 +104,11 @@ jobs: unset CC_x86_64_unknown_linux_gnu && unset CC && RUSTFLAGS='-C target-feature=+sse2' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-unknown-linux-gnu && rm -rf ../../bindings/target/target/x86_64-unknown-linux-gnu/release/.cargo-lock && cp ../../bindings/target/x86_64-unknown-linux-gnu/release/swc . && chmod +x ./swc && - yarn build --target x86_64-unknown-linux-gnu + if [[ ${{ inputs.package }} == "core" ]]; then + yarn build --target x86_64-unknown-linux-gnu --no-default-features --features swc_v1 + else + yarn build --target x86_64-unknown-linux-gnu + fi - host: ubuntu-latest target: x86_64-unknown-linux-musl # musl build is slow, let's disable the LTO