mirror of
https://github.com/uutils/diffutils.git
synced 2026-06-10 15:48:59 -07:00
*.yml: dedup env:
This commit is contained in:
@@ -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: |
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user