File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,11 @@ jobs:
304
304
with :
305
305
node-version : ${{ env.NODE_LTS_VERSION }}
306
306
check-latest : true
307
- - run : corepack enable
307
+
308
+ - name : Setup corepack
309
+ run : |
310
+
311
+ corepack enable
308
312
309
313
# we always want to run this to set environment variables
310
314
- name : Install Rust
@@ -334,7 +338,7 @@ jobs:
334
338
# issues with turbo caching
335
339
- name : pull build cache
336
340
if : ${{ matrix.settings.docker }}
337
- run : npm i -g turbo@${{ env. TURBO_VERSION }} && node ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}
341
+ run : TURBO_VERSION=${ TURBO_VERSION} node ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}
338
342
339
343
- name : check build exists
340
344
if : ${{ matrix.settings.docker }}
@@ -423,8 +427,6 @@ jobs:
423
427
with :
424
428
targets : wasm32-unknown-unknown
425
429
426
- - run : npm i -g turbo@${{ env.TURBO_VERSION }}
427
-
428
430
- name : Install wasm-pack
429
431
run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
430
432
Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ const { spawn } = require('child_process')
7
7
const target = process . argv [ process . argv . length - 1 ]
8
8
9
9
let turboResult = ''
10
+ const turboCommand = `pnpm dlx turbo@${ process . env . TURBO_VERSION || 'latest' } `
10
11
11
12
await new Promise ( ( resolve , reject ) => {
12
13
const child = spawn (
13
14
'/bin/bash' ,
14
- [ '-c' , `pnpm turbo run cache-build-native --dry=json -- ${ target } ` ] ,
15
+ [ '-c' , `${ turboCommand } run cache-build-native --dry=json -- ${ target } ` ] ,
15
16
{
16
17
stdio : 'pipe' ,
17
18
}
@@ -51,7 +52,7 @@ const { spawn } = require('child_process')
51
52
await new Promise ( ( resolve , reject ) => {
52
53
const child = spawn (
53
54
'/bin/bash' ,
54
- [ '-c' , `pnpm turbo run cache-build-native -- ${ target } ` ] ,
55
+ [ '-c' , `${ turboCommand } run cache-build-native -- ${ target } ` ] ,
55
56
{
56
57
stdio : 'inherit' ,
57
58
}
You can’t perform that action at this time.
0 commit comments