Skip to content

Commit

Permalink
update ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Sep 10, 2024
1 parent 1755f4f commit ff04bc2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ jobs:
# issues with turbo caching
- name: pull build cache
if: ${{ matrix.settings.docker }}
run: node ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}
run: npm i -g turbo@${{ env.TURBO_VERSION }} && node ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}

- name: check build exists
if: ${{ matrix.settings.docker }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build-and-test

on:
push:
branches: ['canary']
branches: ['canary', 'next-13']
pull_request:
types: [opened, synchronize]

Expand Down
6 changes: 6 additions & 0 deletions scripts/pull-turbo-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ const { spawn } = require('child_process')
}
)

child.stderr.on('data', (data) => {
process.stderr.write(data)
})

child.stdout.on('data', (data) => {
process.stdout.write(data)
turboResult += data.toString()
})

Expand All @@ -42,6 +47,7 @@ const { spawn } = require('child_process')

// pull cache if it was available
if (task.cache.local || task.cache.remote) {
console.log('Cache Status', task.taskId, task.hash, task.cache)
await new Promise((resolve, reject) => {
const child = spawn(
'/bin/bash',
Expand Down

0 comments on commit ff04bc2

Please sign in to comment.