Skip to content

Commit

Permalink
In a matrix, run cargo update before building
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog authored Mar 12, 2024
1 parent a1112a9 commit ac5bef9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
version: [stable, nightly, "1.74"]
update: [true, false]

runs-on: ${{ matrix.os }}

Expand All @@ -58,6 +59,9 @@ jobs:
cargo --version
rustc --version
- uses: Swatinem/rust-cache@v2
- name: Update
run: cargo update
if: ${{ matrix.update }}
- name: rustfmt
run: cargo fmt --all -- --check
- uses: taiki-e/install-action@v2
Expand Down

0 comments on commit ac5bef9

Please sign in to comment.