mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Don't wrap sccache when sccache action caused network err
This commit is contained in:
+60
-20
@@ -94,8 +94,6 @@ jobs:
|
||||
name: Documentation/warnings
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -117,8 +115,14 @@ jobs:
|
||||
components: clippy
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -161,8 +165,6 @@ jobs:
|
||||
name: MinRustV # Minimum supported rust version (aka, MinSRV or MSRV)
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -179,8 +181,14 @@ jobs:
|
||||
- uses: taiki-e/install-action@nextest
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Initialize workflow variables
|
||||
id: vars
|
||||
shell: bash
|
||||
@@ -267,8 +275,6 @@ jobs:
|
||||
needs: [ min_version, deps ]
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -286,8 +292,14 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
# Test build on the system missing libselinux (don't install libselinux1-dev at here)
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: "`make build`"
|
||||
# Also check that target/CACHEDIR.TAG is created on a fresh checkout
|
||||
shell: bash
|
||||
@@ -405,8 +417,6 @@ jobs:
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
timeout-minutes: 90
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -423,8 +433,14 @@ jobs:
|
||||
- uses: taiki-e/install-action@nextest
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Test
|
||||
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
|
||||
env:
|
||||
@@ -446,8 +462,6 @@ jobs:
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
timeout-minutes: 90
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -464,8 +478,14 @@ jobs:
|
||||
- uses: taiki-e/install-action@nextest
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Test
|
||||
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
|
||||
env:
|
||||
@@ -488,8 +508,6 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -503,8 +521,14 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: "`make install PROFILE=release`"
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -616,8 +640,6 @@ jobs:
|
||||
timeout-minutes: 90
|
||||
env:
|
||||
DOCKER_OPTS: '--volume /etc/passwd:/etc/passwd --volume /etc/group:/etc/group'
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -658,8 +680,14 @@ jobs:
|
||||
with:
|
||||
key: "${{ matrix.job.os }}_${{ matrix.job.target }}"
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Initialize workflow variables
|
||||
id: vars
|
||||
shell: bash
|
||||
@@ -943,8 +971,6 @@ jobs:
|
||||
needs: [ min_version, deps ]
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -963,8 +989,14 @@ jobs:
|
||||
persist-credentials: false
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -1026,8 +1058,6 @@ jobs:
|
||||
needs: [ min_version, deps ]
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -1051,8 +1081,14 @@ jobs:
|
||||
toolchain: ${{ env.RUST_MIN_SRV }}
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -1120,8 +1156,6 @@ jobs:
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
timeout-minutes: 90
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTC_BOOTSTRAP: 1
|
||||
strategy:
|
||||
@@ -1140,8 +1174,14 @@ jobs:
|
||||
tool: nextest,grcov@0.8.24
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
|
||||
# - name: Reattach HEAD ## may be needed for accurate code coverage info
|
||||
# run: git checkout ${{ github.head_ref }}
|
||||
|
||||
@@ -22,9 +22,7 @@ jobs:
|
||||
name: Run ${{ matrix.type }} benchmarks for ${{ matrix.package }} (CodSpeed)
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUSTC_WRAPPER: sccache
|
||||
CARGO_INCREMENTAL: 0
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
strategy:
|
||||
matrix:
|
||||
type: [simulation, memory]
|
||||
@@ -67,8 +65,14 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
|
||||
- name: Install locales
|
||||
shell: bash
|
||||
|
||||
@@ -67,8 +67,6 @@ jobs:
|
||||
name: Style/lint
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -87,8 +85,14 @@ jobs:
|
||||
components: clippy
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Initialize workflow variables
|
||||
id: vars
|
||||
shell: bash
|
||||
|
||||
+48
-16
@@ -26,8 +26,6 @@ jobs:
|
||||
name: L10n/Build and Test
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -44,8 +42,14 @@ jobs:
|
||||
- uses: taiki-e/install-action@nextest
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -130,8 +134,6 @@ jobs:
|
||||
name: L10n/Clap Error Localization Test
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
@@ -140,8 +142,14 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -302,8 +310,6 @@ jobs:
|
||||
name: L10n/French Integration Test
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
@@ -312,8 +318,14 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -413,8 +425,6 @@ jobs:
|
||||
name: L10n/Multi-call Binary Install Test
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -429,8 +439,14 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -566,8 +582,6 @@ jobs:
|
||||
name: L10n/Installation Test (Make & Cargo)
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -582,8 +596,14 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -907,8 +927,6 @@ jobs:
|
||||
name: L10n/Locale Support Verification
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
@@ -917,8 +935,14 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -1140,8 +1164,6 @@ jobs:
|
||||
name: L10n/Embedded Locale Regression Test
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
@@ -1150,8 +1172,14 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install/setup prerequisites
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -1263,8 +1291,6 @@ jobs:
|
||||
name: L10n/Locale Embedding - Cargo Install
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
@@ -1275,8 +1301,14 @@ jobs:
|
||||
with:
|
||||
key: cargo-install-locale-embedding
|
||||
- name: Run sccache-cache
|
||||
id: sccache-setup
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
continue-on-error: true
|
||||
- name: Export sccache
|
||||
if: steps.sccache-setup.outcome == 'success'
|
||||
run: |
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
- name: Install prerequisites
|
||||
run: |
|
||||
sudo apt-get -y update
|
||||
|
||||
Reference in New Issue
Block a user