Skip to content

Commit 738f02f

Browse files
committed
*.yml: dedup env:
1 parent 23890b6 commit 738f02f

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ jobs:
8989

9090
coverage:
9191
name: Code Coverage
92+
env:
93+
RUSTC_BOOTSTRAP: 1
9294
runs-on: ${{ matrix.job.os }}
9395
strategy:
9496
fail-fast: false
@@ -100,9 +102,6 @@ jobs:
100102
steps:
101103
- uses: actions/checkout@v4
102104
- name: Initialize workflow variables
103-
env:
104-
# Use -Z
105-
RUSTC_BOOTSTRAP: 1
106105
id: vars
107106
shell: bash
108107
run: |
@@ -125,17 +124,11 @@ jobs:
125124
- name: Test
126125
run: cargo test --all-features --no-fail-fast
127126
env:
128-
CARGO_INCREMENTAL: "0"
129127
RUSTC_WRAPPER: ""
130128
RUSTFLAGS: "-Cinstrument-coverage -Zcoverage-options=branch -Ccodegen-units=1 -Copt-level=0 -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
131129
RUSTDOCFLAGS: "-Cpanic=abort"
132130
LLVM_PROFILE_FILE: "diffutils-%p-%m.profraw"
133-
# Use -Z
134-
RUSTC_BOOTSTRAP: 1
135131
- name: "`grcov` ~ install"
136-
env:
137-
# Use -Z
138-
RUSTC_BOOTSTRAP: 1
139132
id: build_grcov
140133
shell: bash
141134
run: |

.github/workflows/fuzzing.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Fuzzing
22

33
# spell-checker:ignore fuzzer
44

5+
env:
6+
CARGO_INCREMENTAL: 0
7+
RUSTC_BOOTSTRAP: 1
8+
59
on:
610
pull_request:
711
push:
@@ -23,8 +27,6 @@ jobs:
2327
- uses: actions/checkout@v4
2428
- name: Install `cargo-fuzz`
2529
run: |
26-
echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}"
27-
echo "CARGO_INCREMENTAL=0" >> "${GITHUB_ENV}"
2830
cargo install cargo-fuzz --locked
2931
- uses: Swatinem/rust-cache@v2
3032
with:
@@ -53,8 +55,6 @@ jobs:
5355
- uses: actions/checkout@v4
5456
- name: Install `cargo-fuzz`
5557
run: |
56-
echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}"
57-
echo "CARGO_INCREMENTAL=0" >> "${GITHUB_ENV}"
5858
cargo install cargo-fuzz --locked
5959
- uses: Swatinem/rust-cache@v2
6060
with:

0 commit comments

Comments
 (0)