Increase remote cache timeout for swc builds (#51270)
These occasionally timeout and start building even when they don't need to so this increases them a bit from the default.
This commit is contained in:
parent
8ac9b342e3
commit
6dcc4fbc23
3 changed files with 12 additions and 12 deletions
20
.github/workflows/build_and_deploy.yml
vendored
20
.github/workflows/build_and_deploy.yml
vendored
|
@ -81,17 +81,17 @@ 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 --summarize -- --target x86_64-apple-darwin --release
|
||||
turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target x86_64-apple-darwin --release
|
||||
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 --summarize -- --target x86_64-pc-windows-msvc
|
||||
turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target x86_64-pc-windows-msvc
|
||||
target: 'x86_64-pc-windows-msvc'
|
||||
- host: windows-latest
|
||||
build: |
|
||||
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" "pnpm@${PNPM_VERSION}"
|
||||
turbo run build-native-no-plugin --summarize -- --release --target i686-pc-windows-msvc
|
||||
turbo run build-native-no-plugin --remote-cache-timeout 90 --summarize -- --release --target i686-pc-windows-msvc
|
||||
target: 'i686-pc-windows-msvc'
|
||||
- host: ubuntu-latest
|
||||
target: 'x86_64-unknown-linux-gnu'
|
||||
|
@ -103,7 +103,7 @@ jobs:
|
|||
rustup target add x86_64-unknown-linux-gnu &&
|
||||
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 &&
|
||||
unset CC_x86_64_unknown_linux_gnu && unset CC &&
|
||||
turbo run build-native-release --summarize -- --target x86_64-unknown-linux-gnu &&
|
||||
turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target x86_64-unknown-linux-gnu &&
|
||||
strip packages/next-swc/native/next-swc.*.node
|
||||
- host: ubuntu-latest
|
||||
target: 'x86_64-unknown-linux-musl'
|
||||
|
@ -115,7 +115,7 @@ jobs:
|
|||
rustup default "${RUST_TOOLCHAIN}" &&
|
||||
rustup target add x86_64-unknown-linux-musl &&
|
||||
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 --summarize -- --target x86_64-unknown-linux-musl &&
|
||||
turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target x86_64-unknown-linux-musl &&
|
||||
strip packages/next-swc/native/next-swc.*.node
|
||||
- host: macos-latest
|
||||
target: 'aarch64-apple-darwin'
|
||||
|
@ -126,7 +126,7 @@ jobs:
|
|||
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
|
||||
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
|
||||
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 --summarize -- --target aarch64-apple-darwin
|
||||
turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target aarch64-apple-darwin
|
||||
strip -x packages/next-swc/native/next-swc.*.node
|
||||
- host: ubuntu-latest
|
||||
target: 'aarch64-unknown-linux-gnu'
|
||||
|
@ -139,7 +139,7 @@ jobs:
|
|||
rustup target add aarch64-unknown-linux-gnu &&
|
||||
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 &&
|
||||
export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
|
||||
turbo run build-native-release --summarize -- --target aarch64-unknown-linux-gnu &&
|
||||
turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target aarch64-unknown-linux-gnu &&
|
||||
llvm-strip -x packages/next-swc/native/next-swc.*.node
|
||||
- host: ubuntu-latest
|
||||
target: 'aarch64-unknown-linux-musl'
|
||||
|
@ -152,13 +152,13 @@ jobs:
|
|||
rustup toolchain install "${RUST_TOOLCHAIN}" &&
|
||||
rustup default "${RUST_TOOLCHAIN}" &&
|
||||
rustup target add aarch64-unknown-linux-musl &&
|
||||
turbo run build-native-release --summarize -- --target aarch64-unknown-linux-musl &&
|
||||
turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target aarch64-unknown-linux-musl &&
|
||||
llvm-strip -x packages/next-swc/native/next-swc.*.node
|
||||
- host: windows-latest
|
||||
target: 'aarch64-pc-windows-msvc'
|
||||
build: |
|
||||
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" "pnpm@${PNPM_VERSION}"
|
||||
turbo run build-native-no-plugin-woa-release --summarize -- --target aarch64-pc-windows-msvc
|
||||
turbo run build-native-no-plugin-woa-release --remote-cache-timeout 90 --summarize -- --target aarch64-pc-windows-msvc
|
||||
needs: build
|
||||
name: stable - ${{ matrix.settings.target }} - node@16
|
||||
runs-on: ${{ matrix.settings.host }}
|
||||
|
@ -323,7 +323,7 @@ jobs:
|
|||
run: node scripts/normalize-version-bump.js
|
||||
|
||||
- name: Build
|
||||
run: turbo run build-wasm --summarize -- --target ${{ matrix.target }} --features tracing/release_max_level_info
|
||||
run: turbo run build-wasm --remote-cache-timeout 90 --summarize -- --target ${{ matrix.target }} --features tracing/release_max_level_info
|
||||
|
||||
- name: Add target to folder name
|
||||
run: '[[ -d "packages/next-swc/crates/wasm/pkg" ]] && mv packages/next-swc/crates/wasm/pkg packages/next-swc/crates/wasm/pkg-${{ matrix.target }} || ls packages/next-swc/crates/wasm'
|
||||
|
|
2
.github/workflows/build_reusable.yml
vendored
2
.github/workflows/build_reusable.yml
vendored
|
@ -107,7 +107,7 @@ jobs:
|
|||
- run: node scripts/normalize-version-bump.js
|
||||
name: normalize versions
|
||||
|
||||
- run: turbo run build-native-release --summarize -- --target x86_64-unknown-linux-gnu
|
||||
- run: turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target x86_64-unknown-linux-gnu
|
||||
if: ${{ inputs.skipNativeBuild != 'yes' }}
|
||||
|
||||
- name: Upload next-swc artifact
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"new-error": "plop error",
|
||||
"new-test": "plop test",
|
||||
"clean": "lerna clean -y && lerna bootstrap && lerna run clean && lerna exec 'node ../../scripts/rm.mjs dist'",
|
||||
"build": "turbo run build --summarize true",
|
||||
"build": "turbo run build --remote-cache-timeout 60 --summarize true",
|
||||
"lerna": "lerna",
|
||||
"dev": "turbo run dev --parallel",
|
||||
"test-types": "tsc",
|
||||
|
|
Loading…
Reference in a new issue