From 738f02f52fa518cc010f000451ecbdd477280cec Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Fri, 20 Mar 2026 20:40:35 +0900 Subject: [PATCH] *.yml: dedup env: --- .github/workflows/ci.yml | 11 ++--------- .github/workflows/fuzzing.yml | 8 ++++---- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a57192a..851f723 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,6 +89,8 @@ jobs: coverage: name: Code Coverage + env: + RUSTC_BOOTSTRAP: 1 runs-on: ${{ matrix.job.os }} strategy: fail-fast: false @@ -100,9 +102,6 @@ jobs: steps: - uses: actions/checkout@v4 - name: Initialize workflow variables - env: - # Use -Z - RUSTC_BOOTSTRAP: 1 id: vars shell: bash run: | @@ -125,17 +124,11 @@ jobs: - name: Test run: cargo test --all-features --no-fail-fast env: - CARGO_INCREMENTAL: "0" RUSTC_WRAPPER: "" RUSTFLAGS: "-Cinstrument-coverage -Zcoverage-options=branch -Ccodegen-units=1 -Copt-level=0 -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" RUSTDOCFLAGS: "-Cpanic=abort" LLVM_PROFILE_FILE: "diffutils-%p-%m.profraw" - # Use -Z - RUSTC_BOOTSTRAP: 1 - name: "`grcov` ~ install" - env: - # Use -Z - RUSTC_BOOTSTRAP: 1 id: build_grcov shell: bash run: | diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml index c7e0599..3816777 100644 --- a/.github/workflows/fuzzing.yml +++ b/.github/workflows/fuzzing.yml @@ -2,6 +2,10 @@ name: Fuzzing # spell-checker:ignore fuzzer +env: + CARGO_INCREMENTAL: 0 + RUSTC_BOOTSTRAP: 1 + on: pull_request: push: @@ -23,8 +27,6 @@ jobs: - uses: actions/checkout@v4 - name: Install `cargo-fuzz` run: | - echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}" - echo "CARGO_INCREMENTAL=0" >> "${GITHUB_ENV}" cargo install cargo-fuzz --locked - uses: Swatinem/rust-cache@v2 with: @@ -53,8 +55,6 @@ jobs: - uses: actions/checkout@v4 - name: Install `cargo-fuzz` run: | - echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}" - echo "CARGO_INCREMENTAL=0" >> "${GITHUB_ENV}" cargo install cargo-fuzz --locked - uses: Swatinem/rust-cache@v2 with: