diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38f450bf7..6f50dddb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,9 @@ concurrency: env: rust_msrv: "1.77.1" + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" + SCCACHE_LOG: "debug" jobs: check: @@ -46,6 +49,9 @@ jobs: - name: Check License Header uses: apache/skywalking-eyes/header@v0.6.0 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.7 + - name: Install cargo-sort run: make install-cargo-sort @@ -78,6 +84,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.4 + - name: Setup Rust toolchain uses: ./.github/actions/setup-builder with: @@ -96,6 +105,10 @@ jobs: - windows-latest steps: - uses: actions/checkout@v4 + + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.4 + - name: Build run: cargo build -p iceberg --no-default-features @@ -104,6 +117,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.4 + - name: Setup Rust toolchain uses: ./.github/actions/setup-builder with: