Skip to content

Commit

Permalink
.github: add rust cache (#423)
Browse files Browse the repository at this point in the history
* .github: update to actions/checkout@v4

* .github: add Swatinem/rust-cache@v2

This should make CI much faster.
  • Loading branch information
tamird authored Nov 16, 2023
1 parent 324cd71 commit fe939a8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Test
run: make test

Expand All @@ -20,10 +21,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.61.0
- uses: Swatinem/rust-cache@v2
- name: Use Cargo.lock.msrv
run: cp Cargo.lock.msrv Cargo.lock
- name: Test
Expand All @@ -33,9 +35,10 @@ jobs:
name: Check on 1.51.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.51.0
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --no-default-features

0 comments on commit fe939a8

Please sign in to comment.