diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 6c22834e2b026..f15f4fcaefa3e 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -61,8 +61,24 @@ jobs: path: cli/.cram_env key: prysk-venv-${{ matrix.os.runner }} + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.6 + - 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 diff --git a/cli/turbo.json b/cli/turbo.json index 084392ced1b61..92b936b9c0dcc 100644 --- a/cli/turbo.json +++ b/cli/turbo.json @@ -30,7 +30,14 @@ "rust-src" ], "passThroughEnv": [ - "ProgramData" + "ProgramData", + // sccache related flags + "SCCACHE_BUCKET", + "SCCACHE_REGION", + "RUSTC_WRAPPER", + "CARGO_INCREMENTAL", + "AWS_ACCESS_KEY_ID", + "AWS_SECRET_ACCESS_KEY" ] } } diff --git a/crates/turbo-trace/src/tracer.rs b/crates/turbo-trace/src/tracer.rs index 46e685312c799..9a15c22996f68 100644 --- a/crates/turbo-trace/src/tracer.rs +++ b/crates/turbo-trace/src/tracer.rs @@ -67,6 +67,7 @@ pub enum TraceError { } impl TraceResult { + #[allow(dead_code)] pub fn emit_errors(&self) { let handler = Handler::with_tty_emitter( ColorConfig::Auto,