chore(ci): Fix publish action (#8400)

This commit is contained in:
Donny/강동윤 2023-12-08 04:43:32 +09:00 committed by GitHub
parent a05e2f72d7
commit 25a5189191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,7 @@ jobs:
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: >-
set -e &&
yarn policies set-version 1.22.19 &&
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 &&
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 &&
@ -95,6 +96,7 @@ jobs:
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
build: >-
set -e &&
yarn policies set-version 1.22.19 &&
export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
rustup target add aarch64-unknown-linux-gnu &&
RUSTFLAGS='' cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-unknown-linux-gnu &&
@ -188,6 +190,10 @@ jobs:
shell: bash
- name: Install dependencies
run: |
# Workaround for
# https://github.com/yarnpkg/yarn/issues/9015#issuecomment-1831229617
yarn policies set-version 1.22.19
yarn install --ignore-scripts --registry https://registry.npmjs.org --network-timeout 300000
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
echo '/usr/local/cargo/bin' >> $GITHUB_PATH