diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index a3b6fe02fc..264b1059ab 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -11,6 +11,7 @@ env: CARGO_TERM_COLOR: always BASELINE: base SEED: reth + RUSTC_WRAPPER: "sccache" name: bench jobs: @@ -22,6 +23,7 @@ jobs: submodules: true - uses: rui314/setup-mold@v1 - uses: dtolnay/rust-toolchain@stable + - uses: mozilla-actions/sccache-action@v0.0.9 - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 13defbc070..c52a5007ad 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -10,6 +10,9 @@ on: types: [opened, reopened, synchronize, closed] merge_group: +env: + RUSTC_WRAPPER: "sccache" + jobs: build: runs-on: depot-ubuntu-latest-8 @@ -33,6 +36,8 @@ jobs: - name: Install Rust nightly uses: dtolnay/rust-toolchain@nightly + - uses: mozilla-actions/sccache-action@v0.0.9 + - name: Build docs run: cd docs/vocs && bash scripts/build-cargo-docs.sh diff --git a/.github/workflows/compact.yml b/.github/workflows/compact.yml index 5c32f0ad08..9293d52b80 100644 --- a/.github/workflows/compact.yml +++ b/.github/workflows/compact.yml @@ -13,6 +13,7 @@ on: env: CARGO_TERM_COLOR: always + RUSTC_WRAPPER: "sccache" name: compact-codec jobs: @@ -26,6 +27,7 @@ jobs: steps: - uses: rui314/setup-mold@v1 - uses: dtolnay/rust-toolchain@stable + - uses: mozilla-actions/sccache-action@v0.0.9 - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 03ef07e657..f31fefed35 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -11,6 +11,7 @@ on: env: CARGO_TERM_COLOR: always SEED: rustethereumethereumrust + RUSTC_WRAPPER: "sccache" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -26,6 +27,7 @@ jobs: steps: - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable + - uses: mozilla-actions/sccache-action@v0.0.9 - uses: taiki-e/install-action@nextest - uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ab09bc6ce..d1b6842081 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,7 @@ env: CARGO_TERM_COLOR: always DOCKER_IMAGE_NAME_URL: https://ghcr.io/${{ github.repository_owner }}/reth DOCKER_OP_IMAGE_NAME_URL: https://ghcr.io/${{ github.repository_owner }}/op-reth + RUSTC_WRAPPER: "sccache" jobs: dry-run: @@ -51,6 +52,7 @@ jobs: steps: - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable + - uses: mozilla-actions/sccache-action@v0.0.9 - name: Verify crate version matches tag # Check that the Cargo version starts with the tag, # so that Cargo version 1.4.8 can be matched against both v1.4.8 and v1.4.8-rc.1 @@ -104,6 +106,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: target: ${{ matrix.configs.target }} + - uses: mozilla-actions/sccache-action@v0.0.9 - name: Install cross main id: cross_main run: | diff --git a/.github/workflows/sync-era.yml b/.github/workflows/sync-era.yml index 97d93c25b7..e6ce12f962 100644 --- a/.github/workflows/sync-era.yml +++ b/.github/workflows/sync-era.yml @@ -9,6 +9,7 @@ on: env: CARGO_TERM_COLOR: always + RUSTC_WRAPPER: "sccache" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -41,6 +42,7 @@ jobs: - uses: actions/checkout@v6 - uses: rui314/setup-mold@v1 - uses: dtolnay/rust-toolchain@stable + - uses: mozilla-actions/sccache-action@v0.0.9 - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 89367ec6f2..c1c5794fd0 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -9,6 +9,7 @@ on: env: CARGO_TERM_COLOR: always + RUSTC_WRAPPER: "sccache" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -41,6 +42,7 @@ jobs: - uses: actions/checkout@v6 - uses: rui314/setup-mold@v1 - uses: dtolnay/rust-toolchain@stable + - uses: mozilla-actions/sccache-action@v0.0.9 - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true