From 9be98e4aecff4770117015f8c586278417570b13 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Thu, 9 Mar 2023 14:06:05 -0800 Subject: [PATCH] Use turbo remote cache for build-native-test (#46975) This ensures we leverage the turbo remote cache when able to for the dev swc binary as well. x-ref: https://github.com/vercel/next.js/actions/runs/4378909387/jobs/7664237608 --- .github/workflows/build_test_deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index a96eae6705e24..01290fe933fd5 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -1022,6 +1022,10 @@ jobs: build-native-test: name: Build native binary for tests and metrics runs-on: ubuntu-latest + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: 'vercel' + steps: # https://github.com/actions/virtual-environments/issues/1187 - name: tune linux network @@ -1076,7 +1080,7 @@ jobs: if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }} with: image: ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24-x64 - options: -e RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }} -e NAPI_CLI_VERSION=${{ env.NAPI_CLI_VERSION }} -e TURBO_VERSION=${{ env.TURBO_VERSION }} -v ${{ env.HOME }}/.cargo/git:/root/.cargo/git -v ${{ env.HOME }}/.cargo/registry:/root/.cargo/registry -v ${{ github.workspace }}:/build -w /build + options: -e TURBO_TOKEN=${{ env.TURBO_TOKEN }} -e TURBO_TEAM=${{ env.TURBO_TEAM }} -e RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }} -e NAPI_CLI_VERSION=${{ env.NAPI_CLI_VERSION }} -e TURBO_VERSION=${{ env.TURBO_VERSION }} -v ${{ env.HOME }}/.cargo/git:/root/.cargo/git -v ${{ env.HOME }}/.cargo/registry:/root/.cargo/registry -v ${{ github.workspace }}:/build -w /build # turn on some optimization while building Rust codes to prevent tests timeout run: | set -e &&