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:
|
coverage:
|
||||||
name: Code Coverage
|
name: Code Coverage
|
||||||
|
env:
|
||||||
|
RUSTC_BOOTSTRAP: 1
|
||||||
runs-on: ${{ matrix.job.os }}
|
runs-on: ${{ matrix.job.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -100,9 +102,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Initialize workflow variables
|
- name: Initialize workflow variables
|
||||||
env:
|
|
||||||
# Use -Z
|
|
||||||
RUSTC_BOOTSTRAP: 1
|
|
||||||
id: vars
|
id: vars
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -125,17 +124,11 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test --all-features --no-fail-fast
|
run: cargo test --all-features --no-fail-fast
|
||||||
env:
|
env:
|
||||||
CARGO_INCREMENTAL: "0"
|
|
||||||
RUSTC_WRAPPER: ""
|
RUSTC_WRAPPER: ""
|
||||||
RUSTFLAGS: "-Cinstrument-coverage -Zcoverage-options=branch -Ccodegen-units=1 -Copt-level=0 -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
|
RUSTFLAGS: "-Cinstrument-coverage -Zcoverage-options=branch -Ccodegen-units=1 -Copt-level=0 -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
|
||||||
RUSTDOCFLAGS: "-Cpanic=abort"
|
RUSTDOCFLAGS: "-Cpanic=abort"
|
||||||
LLVM_PROFILE_FILE: "diffutils-%p-%m.profraw"
|
LLVM_PROFILE_FILE: "diffutils-%p-%m.profraw"
|
||||||
# Use -Z
|
|
||||||
RUSTC_BOOTSTRAP: 1
|
|
||||||
- name: "`grcov` ~ install"
|
- name: "`grcov` ~ install"
|
||||||
env:
|
|
||||||
# Use -Z
|
|
||||||
RUSTC_BOOTSTRAP: 1
|
|
||||||
id: build_grcov
|
id: build_grcov
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -2,6 +2,10 @@ name: Fuzzing
|
|||||||
|
|
||||||
# spell-checker:ignore fuzzer
|
# spell-checker:ignore fuzzer
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
RUSTC_BOOTSTRAP: 1
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
@@ -23,8 +27,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install `cargo-fuzz`
|
- name: Install `cargo-fuzz`
|
||||||
run: |
|
run: |
|
||||||
echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}"
|
|
||||||
echo "CARGO_INCREMENTAL=0" >> "${GITHUB_ENV}"
|
|
||||||
cargo install cargo-fuzz --locked
|
cargo install cargo-fuzz --locked
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
@@ -53,8 +55,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install `cargo-fuzz`
|
- name: Install `cargo-fuzz`
|
||||||
run: |
|
run: |
|
||||||
echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}"
|
|
||||||
echo "CARGO_INCREMENTAL=0" >> "${GITHUB_ENV}"
|
|
||||||
cargo install cargo-fuzz --locked
|
cargo install cargo-fuzz --locked
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user