Skip to content

Commit b6c8b7b

Browse files
committed
ci: Add caching for the test job
Additionally clean up the matrix and fix a mistake in the MSRV job's jq script.
1 parent 4e0aa33 commit b6c8b7b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
strategy:
1919
matrix:
2020
include:
21-
- build: nightly
21+
- target: x86_64-unknown-linux-gnu
2222
os: ubuntu-24.04
23-
rust: nightly
2423
steps:
2524
- uses: actions/checkout@v6
2625
- name: Install Rust
2726
run: rustup update nightly --no-self-update && rustup default nightly
27+
- uses: Swatinem/rust-cache@v2
2828
- name: Build and run tests
2929
run: cargo test
3030

@@ -39,7 +39,7 @@ jobs:
3939
- run: |
4040
msrv="$(
4141
cargo metadata --no-deps --format-version 1 |
42-
jq -r '.packages .[] | | select(.name == "rustc_apfloat") | .rust_version'
42+
jq -r '.packages | .[] | | select(.name == "rustc_apfloat") | .rust_version'
4343
)"
4444
echo "MSRV: $msrv"
4545
echo "MSRV=$msrv" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)