Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 13 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -27,6 +21,8 @@ jobs:
if: matrix.os == 'windows-latest'

- name: Check
env:
CARGO_INCREMENTAL: 0
run: |
cargo check --all --all-features

Expand All @@ -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'
Expand All @@ -54,6 +44,8 @@ jobs:
if: matrix.os == 'windows-latest'

- name: Test
env:
CARGO_INCREMENTAL: 0
run: |
cargo test

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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@v6
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand All @@ -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@v6
Expand Down
Loading