Skip to content

Commit f244593

Browse files
authored
Disable turbo for build-native temporarily (vercel#32621)
* Disable turbo for build-native temporarily * update args * re-add working directory config * comment out caching
1 parent b0d36ef commit f244593

File tree

1 file changed

+99
-91
lines changed

1 file changed

+99
-91
lines changed

.github/workflows/build_test_deploy.yml

Lines changed: 99 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -663,16 +663,16 @@ jobs:
663663
- id: get-week
664664
run: echo ::set-output name=WEEK::$(date +%U)
665665

666-
- name: Turbo Cache
667-
id: turbo-cache
668-
uses: actions/cache@v2
669-
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
670-
with:
671-
path: .turbo
672-
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ steps.get-week.outputs.WEEK }}-${{ github.sha }}
673-
restore-keys: |
674-
turbo-${{ github.job }}-${{ github.ref_name }}-${{ steps.get-week.outputs.WEEK }}-
675-
turbo-${{ github.job }}-canary-${{ steps.get-week.outputs.WEEK }}-
666+
# - name: Turbo Cache
667+
# id: turbo-cache
668+
# uses: actions/cache@v2
669+
# if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
670+
# with:
671+
# path: .turbo
672+
# key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ steps.get-week.outputs.WEEK }}-${{ github.sha }}
673+
# restore-keys: |
674+
# turbo-${{ github.job }}-${{ github.ref_name }}-${{ steps.get-week.outputs.WEEK }}-
675+
# turbo-${{ github.job }}-canary-${{ steps.get-week.outputs.WEEK }}-
676676

677677
# We use restore-key to pick latest cache.
678678
# We will not get exact match, but doc says
@@ -693,7 +693,8 @@ jobs:
693693

694694
- name: Build
695695
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
696-
run: turbo run build-native --cache-dir=".turbo"
696+
working-directory: packages/next-swc
697+
run: yarn build-native
697698
env:
698699
MACOSX_DEPLOYMENT_TARGET: '10.13'
699700
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
@@ -847,15 +848,15 @@ jobs:
847848
path: ~/.cargo/git
848849
key: stable-${{ matrix.os }}-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
849850

850-
- name: Turbo cache
851-
id: turbo-cache
852-
uses: actions/cache@v2
853-
with:
854-
path: .turbo
855-
key: turbo-${{ github.job }}-${{ matrix.name }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
856-
restore-keys: |
857-
turbo-${{ github.job }}-${{ matrix.name }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
858-
turbo-${{ github.job }}-${{ matrix.name }}-canary-${{ needs.build.outputs.weekNum }}-
851+
# - name: Turbo cache
852+
# id: turbo-cache
853+
# uses: actions/cache@v2
854+
# with:
855+
# path: .turbo
856+
# key: turbo-${{ github.job }}-${{ matrix.name }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
857+
# restore-keys: |
858+
# turbo-${{ github.job }}-${{ matrix.name }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
859+
# turbo-${{ github.job }}-${{ matrix.name }}-canary-${{ needs.build.outputs.weekNum }}-
859860

860861
- name: Cross build aarch64 setup
861862
if: ${{ matrix.target == 'aarch64-apple-darwin' }}
@@ -878,7 +879,8 @@ jobs:
878879
next-swc-cargo-cache-${{ matrix.os }}
879880
880881
- name: 'Build'
881-
run: turbo run build-native --cache-dir=".turbo" -- --release --target ${{ matrix.target }}
882+
working-directory: packages/next-swc
883+
run: yarn build-native --release --target ${{ matrix.target }}
882884
env:
883885
MACOSX_DEPLOYMENT_TARGET: '10.13'
884886
TURBO_TOKEN: ${{secrets.TURBO_TOKEN}}
@@ -934,19 +936,20 @@ jobs:
934936
override: true
935937
target: i686-pc-windows-msvc
936938

937-
- name: Turbo Cache
938-
id: turbo-cache
939-
uses: actions/cache@v2
940-
with:
941-
path: .turbo
942-
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
943-
restore-keys: |
944-
turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
945-
turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
939+
# - name: Turbo Cache
940+
# id: turbo-cache
941+
# uses: actions/cache@v2
942+
# with:
943+
# path: .turbo
944+
# key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
945+
# restore-keys: |
946+
# turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
947+
# turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
946948

947949
- name: Build
948950
shell: bash
949-
run: turbo run build-native --cache-dir=".turbo" -- --release --target i686-pc-windows-msvc
951+
working-directory: packages/next-swc
952+
run: yarn build-native --release --target i686-pc-windows-msvc
950953

951954
- name: Upload artifact
952955
uses: actions/upload-artifact@v2
@@ -981,19 +984,20 @@ jobs:
981984
override: true
982985
target: aarch64-pc-windows-msvc
983986

984-
- name: Turbo Cache
985-
id: turbo-cache
986-
uses: actions/cache@v2
987-
with:
988-
path: .turbo
989-
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
990-
restore-keys: |
991-
turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
992-
turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
987+
# - name: Turbo Cache
988+
# id: turbo-cache
989+
# uses: actions/cache@v2
990+
# with:
991+
# path: .turbo
992+
# key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
993+
# restore-keys: |
994+
# turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
995+
# turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
993996

994997
- name: Build
995998
shell: bash
996-
run: turbo run build-native --cache-dir=".turbo" -- --release --target aarch64-pc-windows-msvc
999+
working-directory: packages/next-swc
1000+
run: yarn build-native --release --target aarch64-pc-windows-msvc
9971001

9981002
- name: Upload artifact
9991003
uses: actions/upload-artifact@v2
@@ -1031,19 +1035,19 @@ jobs:
10311035
docker pull ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
10321036
docker tag ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine builder
10331037
1034-
- name: Turbo Cache
1035-
id: turbo-cache
1036-
uses: actions/cache@v2
1037-
with:
1038-
path: .turbo
1039-
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1040-
restore-keys: |
1041-
turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1042-
turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
1038+
# - name: Turbo Cache
1039+
# id: turbo-cache
1040+
# uses: actions/cache@v2
1041+
# with:
1042+
# path: .turbo
1043+
# key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1044+
# restore-keys: |
1045+
# turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1046+
# turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
10431047

10441048
- name: 'Build'
10451049
run: |
1046-
docker run --rm -v ~/.cargo/git:/root/.cargo/git -v ~/.cargo/registry:/root/.cargo/registry -v $(pwd)/packages/next-swc:/build -w /build builder sh -c "npm i -g @napi-rs/[email protected] && npm i -g [email protected] && turbo run build-native --cache-dir=".turbo" -- --release --target x86_64-unknown-linux-musl"
1050+
docker run --rm -v ~/.cargo/git:/root/.cargo/git -v ~/.cargo/registry:/root/.cargo/registry -v $(pwd)/packages/next-swc:/build -w /build builder sh -c "npm i -g @napi-rs/[email protected] && npm i -g [email protected] && yarn build-native --release --target x86_64-unknown-linux-musl"
10471051
10481052
- name: Upload artifact
10491053
uses: actions/upload-artifact@v2
@@ -1093,19 +1097,20 @@ jobs:
10931097
sudo apt-get update
10941098
sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y
10951099
1096-
- name: Turbo Cache
1097-
id: turbo-cache
1098-
uses: actions/cache@v2
1099-
with:
1100-
path: .turbo
1101-
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1102-
restore-keys: |
1103-
turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1104-
turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
1100+
# - name: Turbo Cache
1101+
# id: turbo-cache
1102+
# uses: actions/cache@v2
1103+
# with:
1104+
# path: .turbo
1105+
# key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1106+
# restore-keys: |
1107+
# turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1108+
# turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
11051109

11061110
- name: Cross build aarch64
1111+
working-directory: packages/next-swc
11071112
if: ${{ steps.binary-cache.outputs.cache-hit != 'true' }}
1108-
run: turbo run build-native --cache-dir=".turbo" -- --release --target aarch64-unknown-linux-gnu
1113+
run: yarn build-native --release --target aarch64-unknown-linux-gnu
11091114

11101115
- name: Upload artifact
11111116
uses: actions/upload-artifact@v2
@@ -1152,18 +1157,19 @@ jobs:
11521157
sudo apt-get update
11531158
sudo apt-get install gcc-aarch64-linux-gnu -y
11541159
1155-
- name: Turbo Cache
1156-
id: turbo-cache
1157-
uses: actions/cache@v2
1158-
with:
1159-
path: .turbo
1160-
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1161-
restore-keys: |
1162-
turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1163-
turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
1160+
# - name: Turbo Cache
1161+
# id: turbo-cache
1162+
# uses: actions/cache@v2
1163+
# with:
1164+
# path: .turbo
1165+
# key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1166+
# restore-keys: |
1167+
# turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1168+
# turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
11641169

11651170
- name: Cross build aarch64
1166-
run: turbo run build-native --cache-dir=".turbo" -- --release --target aarch64-unknown-linux-musl
1171+
working-directory: packages/next-swc
1172+
run: yarn build-native --release --target aarch64-unknown-linux-musl
11671173

11681174
- name: Upload artifact
11691175
uses: actions/upload-artifact@v2
@@ -1213,18 +1219,19 @@ jobs:
12131219
sudo apt-get update
12141220
sudo apt-get install gcc-arm-linux-gnueabihf -y
12151221
1216-
- name: Turbo Cache
1217-
id: turbo-cache
1218-
uses: actions/cache@v2
1219-
with:
1220-
path: .turbo
1221-
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1222-
restore-keys: |
1223-
turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1224-
turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
1222+
# - name: Turbo Cache
1223+
# id: turbo-cache
1224+
# uses: actions/cache@v2
1225+
# with:
1226+
# path: .turbo
1227+
# key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1228+
# restore-keys: |
1229+
# turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1230+
# turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
12251231

12261232
- name: Cross build aarch64
1227-
run: turbo run build-native --cache-dir=".turbo" -- --release --target armv7-unknown-linux-gnueabihf
1233+
working-directory: packages/next-swc
1234+
run: yarn build-native --release --target armv7-unknown-linux-gnueabihf
12281235

12291236
- name: Upload artifact
12301237
uses: actions/upload-artifact@v2
@@ -1260,21 +1267,22 @@ jobs:
12601267
override: true
12611268
target: aarch64-linux-android
12621269

1263-
- name: Turbo Cache
1264-
id: turbo-cache
1265-
uses: actions/cache@v2
1266-
with:
1267-
path: .turbo
1268-
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1269-
restore-keys: |
1270-
turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1271-
turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
1270+
# - name: Turbo Cache
1271+
# id: turbo-cache
1272+
# uses: actions/cache@v2
1273+
# with:
1274+
# path: .turbo
1275+
# key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-${{ github.sha }}
1276+
# restore-keys: |
1277+
# turbo-${{ github.job }}-${{ github.ref_name }}-${{ needs.build.outputs.weekNum }}-
1278+
# turbo-${{ github.job }}-canary-${{ needs.build.outputs.weekNum }}-
12721279

12731280
- name: Build
12741281
shell: bash
1282+
working-directory: packages/next-swc
12751283
run: |
12761284
export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android24-clang"
1277-
turbo run build-native --cache-dir=".turbo" -- --release --target aarch64-linux-android
1285+
yarn build-native --release --target aarch64-linux-android
12781286
12791287
- name: Upload artifact
12801288
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)