Unverified Commit 91ef3303 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

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
parent fbf6bfa0
...@@ -1156,12 +1156,12 @@ jobs: ...@@ -1156,12 +1156,12 @@ jobs:
target: 'x86_64-apple-darwin' target: 'x86_64-apple-darwin'
build: | 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 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 strip -x packages/next-swc/native/next-swc.*.node
- host: windows-latest - host: windows-latest
build: | build: |
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" "pnpm@${PNPM_VERSION}" 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' target: 'x86_64-pc-windows-msvc'
- host: windows-latest - host: windows-latest
build: | build: |
......
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