Unverified Commit 6ff05b68 authored by LongYinan's avatar LongYinan Committed by GitHub
parent 9cfa9945
...@@ -1472,13 +1472,13 @@ jobs: ...@@ -1472,13 +1472,13 @@ jobs:
# Disable LTO, or the lld may crash with OOM # Disable LTO, or the lld may crash with OOM
CARGO_PROFILE_RELEASE_LTO: false CARGO_PROFILE_RELEASE_LTO: false
with: with:
envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS CARGO_PROFILE_RELEASE_LTO NAPI_CLI_VERSION TURBO_VERSION RUST_TOOLCHAIN envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS CARGO_PROFILE_RELEASE_LTO NAPI_CLI_VERSION TURBO_VERSION RUST_TOOLCHAIN PNPM_VERSION
usesh: true usesh: true
mem: 6000 mem: 6000
prepare: | prepare: |
pkg install -y curl node14 pkg install -y curl node16
curl -qL https://www.npmjs.com/install.sh | sh curl -qL https://www.npmjs.com/install.sh | sh
npm install -g yarn npm i -g pnpm@${PNPM_VERSION} "@napi-rs/cli@${NAPI_CLI_VERSION}"
curl https://sh.rustup.rs -sSf --output rustup.sh curl https://sh.rustup.rs -sSf --output rustup.sh
sh rustup.sh -y --profile minimal --default-toolchain stable sh rustup.sh -y --profile minimal --default-toolchain stable
export PATH="/usr/local/cargo/bin:$PATH" export PATH="/usr/local/cargo/bin:$PATH"
...@@ -1493,8 +1493,7 @@ jobs: ...@@ -1493,8 +1493,7 @@ jobs:
whoami whoami
env env
freebsd-version freebsd-version
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" pnpm --filter=@next/swc run build-native-no-plugin --platform --release --target x86_64-unknown-freebsd
cd packages/next-swc && napi build --platform -p next-swc-napi --cargo-name next_swc_napi native --release --target x86_64-unknown-freebsd
rm -rf node_modules rm -rf node_modules
rm -rf packages/next-swc/target rm -rf packages/next-swc/target
- name: Upload artifact - name: Upload artifact
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment