mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
CI: replace actions-rs/install with cargo install
This commit is contained in:
parent
418fe6d758
commit
584f3cd0b2
2 changed files with 5 additions and 28 deletions
27
.github/workflows/CICD.yml
vendored
27
.github/workflows/CICD.yml
vendored
|
@ -70,11 +70,7 @@ jobs:
|
||||||
rustup default nightly
|
rustup default nightly
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Install `cargo-udeps`
|
- name: Install `cargo-udeps`
|
||||||
uses: actions-rs/install@v0.1
|
run: cargo install cargo-udeps
|
||||||
with:
|
|
||||||
crate: cargo-udeps
|
|
||||||
version: latest
|
|
||||||
use-tool-cache: false
|
|
||||||
env:
|
env:
|
||||||
RUSTUP_TOOLCHAIN: stable
|
RUSTUP_TOOLCHAIN: stable
|
||||||
- name: Detect unused dependencies
|
- name: Detect unused dependencies
|
||||||
|
@ -1016,22 +1012,7 @@ jobs:
|
||||||
# RUSTUP_TOOLCHAIN: ${{ steps.vars.outputs.TOOLCHAIN }}
|
# RUSTUP_TOOLCHAIN: ${{ steps.vars.outputs.TOOLCHAIN }}
|
||||||
- name: "`grcov` ~ install"
|
- name: "`grcov` ~ install"
|
||||||
id: build_grcov
|
id: build_grcov
|
||||||
shell: bash
|
run: cargo install grcov
|
||||||
run: |
|
|
||||||
git clone https://github.com/mozilla/grcov.git ~/grcov/
|
|
||||||
cd ~/grcov
|
|
||||||
# Hardcode the version of crossbeam-epoch. See
|
|
||||||
# https://github.com/uutils/coreutils/issues/3680
|
|
||||||
sed -i -e "s|tempfile =|crossbeam-epoch = \"=0.9.8\"\ntempfile =|" Cargo.toml
|
|
||||||
cargo install --path .
|
|
||||||
cd -
|
|
||||||
# Uncomment when the upstream issue
|
|
||||||
# https://github.com/mozilla/grcov/issues/849 is fixed
|
|
||||||
# uses: actions-rs/install@v0.1
|
|
||||||
# with:
|
|
||||||
# crate: grcov
|
|
||||||
# version: latest
|
|
||||||
# use-tool-cache: false
|
|
||||||
- name: Generate coverage data (via `grcov`)
|
- name: Generate coverage data (via `grcov`)
|
||||||
id: coverage
|
id: coverage
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -1043,9 +1024,9 @@ jobs:
|
||||||
# GRCOV_EXCLUDE_OPTION='--excl-br-line "^\s*((debug_)?assert(_eq|_ne)?!|#\[derive\()"' ## `grcov` ignores these params when passed as an environment variable (why?)
|
# GRCOV_EXCLUDE_OPTION='--excl-br-line "^\s*((debug_)?assert(_eq|_ne)?!|#\[derive\()"' ## `grcov` ignores these params when passed as an environment variable (why?)
|
||||||
mkdir -p "${COVERAGE_REPORT_DIR}"
|
mkdir -p "${COVERAGE_REPORT_DIR}"
|
||||||
# display coverage files
|
# display coverage files
|
||||||
~/.cargo/bin/grcov . --output-types files --ignore build.rs --ignore "vendor/*" --ignore "/*" --ignore "[a-zA-Z]:/*" --excl-br-line "^\s*((debug_)?assert(_eq|_ne)?!|#\[derive\()" | sort --unique
|
~/.cargo/bin/grcov . --output-type files --ignore build.rs --ignore "vendor/*" --ignore "/*" --ignore "[a-zA-Z]:/*" --excl-br-line "^\s*((debug_)?assert(_eq|_ne)?!|#\[derive\()" | sort --unique
|
||||||
# generate coverage report
|
# generate coverage report
|
||||||
~/.cargo/bin/grcov . --output-types lcov --output-path "${COVERAGE_REPORT_FILE}" --branch --ignore build.rs --ignore "vendor/*" --ignore "/*" --ignore "[a-zA-Z]:/*" --excl-br-line "^\s*((debug_)?assert(_eq|_ne)?!|#\[derive\()"
|
~/.cargo/bin/grcov . --output-type lcov --output-path "${COVERAGE_REPORT_FILE}" --branch --ignore build.rs --ignore "vendor/*" --ignore "/*" --ignore "[a-zA-Z]:/*" --excl-br-line "^\s*((debug_)?assert(_eq|_ne)?!|#\[derive\()"
|
||||||
echo "report=${COVERAGE_REPORT_FILE}" >> $GITHUB_OUTPUT
|
echo "report=${COVERAGE_REPORT_FILE}" >> $GITHUB_OUTPUT
|
||||||
- name: Upload coverage results (to Codecov.io)
|
- name: Upload coverage results (to Codecov.io)
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
|
|
6
.github/workflows/GnuTests.yml
vendored
6
.github/workflows/GnuTests.yml
vendored
|
@ -310,11 +310,7 @@ jobs:
|
||||||
- name: Run GNU tests
|
- name: Run GNU tests
|
||||||
run: bash uutils/util/run-gnu-test.sh
|
run: bash uutils/util/run-gnu-test.sh
|
||||||
- name: "`grcov` ~ install"
|
- name: "`grcov` ~ install"
|
||||||
uses: actions-rs/install@v0.1
|
run: cargo install grcov
|
||||||
with:
|
|
||||||
crate: grcov
|
|
||||||
version: latest
|
|
||||||
use-tool-cache: false
|
|
||||||
- name: Generate coverage data (via `grcov`)
|
- name: Generate coverage data (via `grcov`)
|
||||||
id: coverage
|
id: coverage
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue