Skip to content
Merged
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
9 changes: 6 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
- msrv
include:
- os: ubuntu-latest
rust: stable
rust: msrv
lint: 1
- rust: stable
rust-args: --all-features
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source
Expand All @@ -37,8 +39,9 @@ jobs:
if [ "$ver" = msrv ]; then
ver=$(cargo metadata --format-version 1 --no-deps | \
jq -r '.packages[0].rust_version')
extra=(-c rustfmt -c clippy)
fi
rustup toolchain install "$ver" --profile minimal --no-self-update
rustup toolchain install "$ver" --profile minimal --no-self-update "${extra[@]}"
rustup default "$ver"
echo "Installed:"
cargo --version
Expand All @@ -47,7 +50,7 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: cargo test
run: cargo test --workspace --all-features
run: cargo test --workspace ${{ matrix.rust-args }}

- name: rustfmt
if: github.event_name == 'pull_request' && matrix.lint
Expand Down