From c97a8e8f1b44beefa6a6996e7d9ae63bd27ce667 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 10 Aug 2022 18:09:10 -0500 Subject: [PATCH] Fix swc build for freebsd target (#39478) * Fix swc build for freebsd target * test build * update build * update version * test v0 * use napi directly * revert vm version * undo test build --- .github/workflows/build_test_deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 9293ce558a4e..1537037ceab9 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -1463,7 +1463,7 @@ jobs: rm -rf test - name: Build id: build - uses: vmactions/freebsd-vm@v0.2.0 + uses: vmactions/freebsd-vm@v0.2.3 env: DEBUG: napi:* RUSTUP_HOME: /usr/local/rustup @@ -1493,8 +1493,8 @@ jobs: whoami env freebsd-version - npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" && if [ ! -f $(dirname $(which yarn))/pnpm ]; then ln -s $(which yarn) $(dirname $(which yarn))/pnpm;fi - yarn --cwd=packages/next-swc build-native-no-plugin --release --target x86_64-unknown-freebsd + npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" + 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 packages/next-swc/target - name: Upload artifact