From 91ef3303c3c4aa487a5fc1cb0e95876329108f48 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Tue, 15 Nov 2022 10:33:03 -0800 Subject: [PATCH] Fix cache collision for swc darwin (#42960) Ensures we have the actual target passed into turbo for all builds so it's considered for the cache key. Fixes: https://github.com/vercel/next.js/actions/runs/3472341903/jobs/5803170296 --- .github/workflows/build_test_deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 945afa245cf5..f34a57c5f7b9 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -1156,12 +1156,12 @@ jobs: target: 'x86_64-apple-darwin' build: | 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 - turbo run build-native -- --release + turbo run build-native -- --release --target x86_64-apple-darwin strip -x packages/next-swc/native/next-swc.*.node - host: windows-latest build: | npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" "pnpm@${PNPM_VERSION}" - turbo run build-native -- --release + turbo run build-native -- --release --target x86_64-pc-windows-msvc target: 'x86_64-pc-windows-msvc' - host: windows-latest build: |