@@ -663,16 +663,16 @@ jobs:
663
663
- id : get-week
664
664
run : echo ::set-output name=WEEK::$(date +%U)
665
665
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 }}-
676
676
677
677
# We use restore-key to pick latest cache.
678
678
# We will not get exact match, but doc says
@@ -693,7 +693,8 @@ jobs:
693
693
694
694
- name : Build
695
695
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
697
698
env :
698
699
MACOSX_DEPLOYMENT_TARGET : ' 10.13'
699
700
TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
@@ -847,15 +848,15 @@ jobs:
847
848
path : ~/.cargo/git
848
849
key : stable-${{ matrix.os }}-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
849
850
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 }}-
859
860
860
861
- name : Cross build aarch64 setup
861
862
if : ${{ matrix.target == 'aarch64-apple-darwin' }}
@@ -878,7 +879,8 @@ jobs:
878
879
next-swc-cargo-cache-${{ matrix.os }}
879
880
880
881
- 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 }}
882
884
env :
883
885
MACOSX_DEPLOYMENT_TARGET : ' 10.13'
884
886
TURBO_TOKEN : ${{secrets.TURBO_TOKEN}}
@@ -934,19 +936,20 @@ jobs:
934
936
override : true
935
937
target : i686-pc-windows-msvc
936
938
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 }}-
946
948
947
949
- name : Build
948
950
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
950
953
951
954
- name : Upload artifact
952
955
uses : actions/upload-artifact@v2
@@ -981,19 +984,20 @@ jobs:
981
984
override : true
982
985
target : aarch64-pc-windows-msvc
983
986
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 }}-
993
996
994
997
- name : Build
995
998
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
997
1001
998
1002
- name : Upload artifact
999
1003
uses : actions/upload-artifact@v2
@@ -1031,19 +1035,19 @@ jobs:
1031
1035
docker pull ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
1032
1036
docker tag ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine builder
1033
1037
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 }}-
1043
1047
1044
1048
- name : ' Build'
1045
1049
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"
1047
1051
1048
1052
- name : Upload artifact
1049
1053
uses : actions/upload-artifact@v2
@@ -1093,19 +1097,20 @@ jobs:
1093
1097
sudo apt-get update
1094
1098
sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y
1095
1099
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 }}-
1105
1109
1106
1110
- name : Cross build aarch64
1111
+ working-directory : packages/next-swc
1107
1112
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
1109
1114
1110
1115
- name : Upload artifact
1111
1116
uses : actions/upload-artifact@v2
@@ -1152,18 +1157,19 @@ jobs:
1152
1157
sudo apt-get update
1153
1158
sudo apt-get install gcc-aarch64-linux-gnu -y
1154
1159
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 }}-
1164
1169
1165
1170
- 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
1167
1173
1168
1174
- name : Upload artifact
1169
1175
uses : actions/upload-artifact@v2
@@ -1213,18 +1219,19 @@ jobs:
1213
1219
sudo apt-get update
1214
1220
sudo apt-get install gcc-arm-linux-gnueabihf -y
1215
1221
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 }}-
1225
1231
1226
1232
- 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
1228
1235
1229
1236
- name : Upload artifact
1230
1237
uses : actions/upload-artifact@v2
@@ -1260,21 +1267,22 @@ jobs:
1260
1267
override : true
1261
1268
target : aarch64-linux-android
1262
1269
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 }}-
1272
1279
1273
1280
- name : Build
1274
1281
shell : bash
1282
+ working-directory : packages/next-swc
1275
1283
run : |
1276
1284
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
1278
1286
1279
1287
- name : Upload artifact
1280
1288
uses : actions/upload-artifact@v2
0 commit comments