-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): enable sccache for integration tests (#9597)
### Description Enable sccache for building the turbo binary in integration tests. ### Testing Instructions This should provide a speedup for our integration tests: - [Normal run](https://github.com/vercel/turborepo/actions/runs/12209798573?pr=9545): - Ubuntu: 12m 17s - macOs: 25m 45s - Windows: 26m 13s - [Run with sccache](https://github.com/vercel/turborepo/actions/runs/12245380679?pr=9597) - Ubuntu: 7m 8s - macOs: 18m 44s - Windows: 23m 31s (I quick double checked that none of these were `turbo` cached, but they did have a warmed `sccache` so external dep changes will degrade speed)
- Loading branch information
1 parent
5e04226
commit 11b6c37
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,8 +61,24 @@ jobs: | |
path: cli/.cram_env | ||
key: prysk-venv-${{ matrix.os.runner }} | ||
|
||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Integration Tests | ||
run: turbo run test --filter=turborepo-tests-integration --color --env-mode=strict --token=${{ secrets.TURBO_TOKEN }} --team=${{ vars.TURBO_TEAM }} | ||
run: | | ||
if [ -z "${RUSTC_WRAPPER}" ]; then | ||
unset RUSTC_WRAPPER | ||
fi | ||
turbo run test --filter=turborepo-tests-integration --color --env-mode=strict --token=${{ secrets.TURBO_TOKEN }} --team=${{ vars.TURBO_TEAM }} | ||
shell: bash | ||
env: | ||
SCCACHE_BUCKET: turborepo-sccache | ||
SCCACHE_REGION: us-east-2 | ||
# Only use sccache if we're in the Vercel repo. | ||
RUSTC_WRAPPER: ${{ !github.event.pull_request.head.repo.fork && 'sccache' || '' }} | ||
CARGO_INCREMENTAL: 0 | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
examples: | ||
name: Turborepo Examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters