mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 22:56:11 +03:00
chore(ci): Fix publish action (#8400)
This commit is contained in:
parent
a05e2f72d7
commit
25a5189191
6
.github/workflows/publish-core.yml
vendored
6
.github/workflows/publish-core.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user