Skip to content

Commit d78f966

Browse files
committed
Use lint on MSRV only & update workflow with gptman
1 parent 7c170e1 commit d78f966

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/rust.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ jobs:
2323
- msrv
2424
include:
2525
- os: ubuntu-latest
26-
rust: stable
26+
rust: msrv
2727
lint: 1
28+
- rust: stable
29+
rust-args: --all-features
2830
runs-on: ${{ matrix.os }}
2931
steps:
3032
- name: Checkout source
@@ -37,8 +39,9 @@ jobs:
3739
if [ "$ver" = msrv ]; then
3840
ver=$(cargo metadata --format-version 1 --no-deps | \
3941
jq -r '.packages[0].rust_version')
42+
extra=(-c rustfmt -c clippy)
4043
fi
41-
rustup toolchain install "$ver" --profile minimal --no-self-update
44+
rustup toolchain install "$ver" --profile minimal --no-self-update "${extra[@]}"
4245
rustup default "$ver"
4346
echo "Installed:"
4447
cargo --version
@@ -47,7 +50,7 @@ jobs:
4750
- uses: Swatinem/rust-cache@v2
4851

4952
- name: cargo test
50-
run: cargo test --workspace --all-features
53+
run: cargo test --workspace ${{ matrix.rust-args }}
5154

5255
- name: rustfmt
5356
if: github.event_name == 'pull_request' && matrix.lint

0 commit comments

Comments
 (0)