Lightweight coding agent that runs in your terminal
Rust
tmp: drop sccache for windows 2 (#6775)
jif-oai98a90a3bb256
diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.ymlindex 5d3103d7b2..0bd91ca53b 100644--- a/.github/workflows/rust-ci.yml+++ b/.github/workflows/rust-ci.yml@@ -95,8 +95,8 @@ jobs:run:working-directory: codex-rsenv:- # Speed up repeated builds across CI runs by caching compiled objects.- RUSTC_WRAPPER: sccache+ # Speed up repeated builds across CI runs by caching compiled objects (non-Windows).+ USE_SCCACHE: ${{ startsWith(matrix.runner, 'windows') && 'false' || 'true' }}CARGO_INCREMENTAL: "0"SCCACHE_CACHE_SIZE: 10G@@ -170,12 +170,14 @@ jobs:# Install and restore sccache cache- name: Install sccache+ if: ${{ env.USE_SCCACHE == 'true' }}uses: taiki-e/install-action@44c6d64aa62cd779e873306675c7a58e86d6d532 # v2with:tool: sccacheversion: 0.7.5- name: Configure sccache backend+ if: ${{ env.USE_SCCACHE == 'true' }}shell: bashrun: |set -euo pipefail@@ -188,8 +190,13 @@ jobs:echo "Using sccache local disk + actions/cache fallback"fi+ - name: Enable sccache wrapper+ if: ${{ env.USE_SCCACHE == 'true' }}+ shell: bash+ run: echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"+- name: Restore sccache cache (fallback)- if: ${{ env.SCCACHE_GHA_ENABLED != 'true' }}+ if: ${{ env.USE_SCCACHE == 'true' && env.SCCACHE_GHA_ENABLED != 'true' }}id: cache_sccache_restoreuses: actions/cache/restore@v4with:@@ -274,7 +281,7 @@ jobs:key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('codex-rs/rust-toolchain.toml') }}- name: Save sccache cache (fallback)- if: always() && !cancelled() && env.SCCACHE_GHA_ENABLED != 'true'+ if: always() && !cancelled() && env.USE_SCCACHE == 'true' && env.SCCACHE_GHA_ENABLED != 'true'continue-on-error: trueuses: actions/cache/save@v4with:@@ -282,12 +289,12 @@ jobs:key: sccache-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.run_id }}- name: sccache stats- if: always()+ if: always() && env.USE_SCCACHE == 'true'continue-on-error: truerun: sccache --show-stats || true- name: sccache summary- if: always()+ if: always() && env.USE_SCCACHE == 'true'shell: bashrun: |{@@ -326,7 +333,8 @@ jobs:run:working-directory: codex-rsenv:- RUSTC_WRAPPER: sccache+ # Speed up repeated builds across CI runs by caching compiled objects (non-Windows).+ USE_SCCACHE: ${{ startsWith(matrix.runner, 'windows') && 'false' || 'true' }}CARGO_INCREMENTAL: "0"SCCACHE_CACHE_SIZE: 10G@@ -370,12 +378,14 @@ jobs:cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-- name: Install sccache+ if: ${{ env.USE_SCCACHE == 'true' }}uses: taiki-e/install-action@44c6d64aa62cd779e873306675c7a58e86d6d532 # v2with:tool: sccacheversion: 0.7.5- name: Configure sccache backend+ if: ${{ env.USE_SCCACHE == 'true' }}shell: bashrun: |set -euo pipefail@@ -388,8 +398,13 @@ jobs:echo "Using sccache local disk + actions/cache fallback"fi+ - name: Enable sccache wrapper+ if: ${{ env.USE_SCCACHE == 'true' }}+ shell: bash+ run: echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"+- name: Restore sccache cache (fallback)- if: ${{ env.SCCACHE_GHA_ENABLED != 'true' }}+ if: ${{ env.USE_SCCACHE == 'true' && env.SCCACHE_GHA_ENABLED != 'true' }}id: cache_sccache_restoreuses: actions/cache/restore@v4with:@@ -424,7 +439,7 @@ jobs:key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('codex-rs/rust-toolchain.toml') }}- name: Save sccache cache (fallback)- if: always() && !cancelled() && env.SCCACHE_GHA_ENABLED != 'true'+ if: always() && !cancelled() && env.USE_SCCACHE == 'true' && env.SCCACHE_GHA_ENABLED != 'true'continue-on-error: trueuses: actions/cache/save@v4with:@@ -432,12 +447,12 @@ jobs:key: sccache-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.run_id }}- name: sccache stats- if: always()+ if: always() && env.USE_SCCACHE == 'true'continue-on-error: truerun: sccache --show-stats || true- name: sccache summary- if: always()+ if: always() && env.USE_SCCACHE == 'true'shell: bashrun: |{