mirror of
https://github.com/uutils/findutils.git
synced 2026-06-10 15:48:30 -07:00
Use preinstalled rust & CARGO_INCREMENTAL=0
This commit is contained in:
+13
-30
@@ -11,12 +11,6 @@ jobs:
|
||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Install `rust` toolchain
|
||||
run: |
|
||||
## Install `rust` toolchain
|
||||
rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
|
||||
rustup default stable
|
||||
|
||||
# For bindgen: https://github.com/rust-lang/rust-bindgen/issues/1797
|
||||
- uses: KyleMayes/install-llvm-action@v2
|
||||
if: matrix.os == 'windows-latest'
|
||||
@@ -27,6 +21,8 @@ jobs:
|
||||
if: matrix.os == 'windows-latest'
|
||||
|
||||
- name: Check
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
run: |
|
||||
cargo check --all --all-features
|
||||
|
||||
@@ -38,12 +34,6 @@ jobs:
|
||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Install `rust` toolchain
|
||||
run: |
|
||||
## Install `rust` toolchain
|
||||
rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
|
||||
rustup default stable
|
||||
|
||||
# For bindgen: https://github.com/rust-lang/rust-bindgen/issues/1797
|
||||
- uses: KyleMayes/install-llvm-action@v2
|
||||
if: matrix.os == 'windows-latest'
|
||||
@@ -54,6 +44,8 @@ jobs:
|
||||
if: matrix.os == 'windows-latest'
|
||||
|
||||
- name: Test
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
run: |
|
||||
cargo test
|
||||
|
||||
@@ -62,14 +54,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Install `rust` toolchain
|
||||
run: |
|
||||
## Install `rust` toolchain
|
||||
rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
|
||||
rustup default stable
|
||||
|
||||
- run: rustup component add rustfmt
|
||||
- name: cargo fmt
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
run: |
|
||||
cargo fmt --all -- --check
|
||||
|
||||
@@ -78,13 +66,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Install `rust` toolchain
|
||||
run: |
|
||||
## Install `rust` toolchain
|
||||
rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
|
||||
rustup default stable
|
||||
- run: rustup component add clippy
|
||||
- name: cargo clippy
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
run: |
|
||||
cargo clippy --all-targets -- -D warnings
|
||||
|
||||
@@ -102,16 +87,14 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install `rust` toolchain
|
||||
run: |
|
||||
rustup toolchain install nightly --no-self-update -c rustfmt --profile minimal
|
||||
rustup default nightly
|
||||
|
||||
- name: Install cargo-llvm-cov
|
||||
uses: taiki-e/install-action@cargo-llvm-cov
|
||||
- name: Generate code coverage
|
||||
run: cargo llvm-cov --all-features --lcov --branch --output-path lcov.info
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTC_BOOTSTRAP: 1
|
||||
run: |
|
||||
cargo llvm-cov --all-features --lcov --branch --output-path lcov.info
|
||||
|
||||
- name: Upload coverage as artifact
|
||||
uses: actions/upload-artifact@v7
|
||||
|
||||
@@ -29,11 +29,6 @@ jobs:
|
||||
git config submodule.gnulib.url https://github.com/coreutils/gnulib.git
|
||||
git submodule update --init --recursive --depth 1
|
||||
working-directory: findutils.gnu
|
||||
- name: Install `rust` toolchain
|
||||
run: |
|
||||
## Install `rust` toolchain
|
||||
rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
|
||||
rustup default stable
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -45,6 +40,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
cd findutils
|
||||
export CARGO_INCREMENTAL=0
|
||||
bash util/build-gnu.sh ||:
|
||||
- name: Extract testing info
|
||||
shell: bash
|
||||
@@ -126,11 +122,6 @@ jobs:
|
||||
repository: tavianator/bfs
|
||||
path: bfs
|
||||
ref: "4.0"
|
||||
- name: Install `rust` toolchain
|
||||
run: |
|
||||
## Install `rust` toolchain
|
||||
rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
|
||||
rustup default stable
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -142,6 +133,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
cd findutils
|
||||
export CARGO_INCREMENTAL=0
|
||||
bash util/build-bfs.sh ||:
|
||||
- name: Upload bfs-test-report
|
||||
uses: actions/upload-artifact@v7
|
||||
|
||||
Reference in New Issue
Block a user