Skip to content

Commit ffdecc7

Browse files
committed
CI workflow updates
Add step to install liblzma-dev as necessary on Linux targets, correct nightly toolchain requirements, and add additional CI runs for feature-less builds.
1 parent 05013e9 commit ffdecc7

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed

.github/workflows/benches.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010
- uses: dtolnay/rust-toolchain@nightly
11+
- name: Install liblzma-dev
12+
if: runner.os == 'Linux'
13+
run: sudo apt-get update && sudo apt-get install -y liblzma-dev
1114
- name: Build benches
12-
run: cargo build --benches --verbose
15+
run: cargo +nightly build --benches --verbose
16+
- name: Build benches (no default features)
17+
run: cargo +nightly build --no-default-features --benches --verbose

.github/workflows/codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
- uses: dtolnay/rust-toolchain@nightly
99
- name: Install cargo-llvm-cov
1010
uses: taiki-e/install-action@cargo-llvm-cov
11+
- name: Install liblzma-dev
12+
if: runner.os == 'Linux'
13+
run: sudo apt-get update && sudo apt-get install -y liblzma-dev
1114
- name: Generate code coverage
1215
run: cargo llvm-cov --all-features --workspace --lib --lcov --output-path lcov.info
1316
- name: Upload to Codecov
@@ -24,6 +27,9 @@ jobs:
2427
- uses: dtolnay/rust-toolchain@nightly
2528
- name: Install cargo-llvm-cov
2629
uses: taiki-e/install-action@cargo-llvm-cov
30+
- name: Install liblzma-dev
31+
if: runner.os == 'Linux'
32+
run: sudo apt-get update && sudo apt-get install -y liblzma-dev
2733
- name: Generate code coverage
2834
run: cargo llvm-cov --all-features --workspace --test '*' --lcov --output-path lcov.info
2935
- name: Upload to Codecov

.github/workflows/format.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ jobs:
88
- uses: dtolnay/rust-toolchain@nightly
99
with:
1010
components: rustfmt
11-
11+
- name: Install rustfmt
12+
run: rustup component add rustfmt
1213
- name: Check formatting
1314
run: cargo fmt --verbose -- --check --verbose
1415
- name: Check formatting on fuzzing

.github/workflows/fuzzing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
- uses: actions/checkout@v4
1010
- uses: dtolnay/rust-toolchain@nightly
1111
- name: Install cargo fuzz
12-
run: cargo install cargo-fuzz --verbose
12+
run: cargo +nightly install cargo-fuzz --verbose
1313
- name: Build fuzz targets
14-
run: cargo fuzz build --verbose
14+
run: cargo +nightly fuzz build --verbose

.github/workflows/lints.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ jobs:
1010
- uses: dtolnay/rust-toolchain@stable
1111
with:
1212
components: clippy
13-
13+
- name: Install liblzma-dev
14+
if: runner.os == 'Linux'
15+
run: sudo apt-get update && sudo apt-get install -y liblzma-dev
16+
- name: Install clippy
17+
run: rustup component add clippy
1418
- name: Check Clippy lints
1519
run: cargo clippy --verbose --all-features -- -W clippy::match-same-arms
1620
- name: Check Clippy lints on tests

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
with:
2323
toolchain: ${{ matrix.rust }}
2424

25+
- name: Install liblzma-dev
26+
if: runner.os == 'Linux'
27+
run: sudo apt-get update && sudo apt-get install -y liblzma-dev
28+
2529
- name: Build with default features
2630
run: cargo build --verbose
2731
- name: Tests with default features

0 commit comments

Comments
 (0)