Skip to content

Commit 8b93446

Browse files
Update and simplify GH action scripts
1 parent edd5b57 commit 8b93446

File tree

1 file changed

+6
-33
lines changed

1 file changed

+6
-33
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,17 @@ env:
1212
jobs:
1313
style:
1414
name: 'Check basic style'
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v6
1818
- name: Check basic style
1919
run: ./.github/check-basic-style.sh
2020

2121
check:
2222
name: 'Build & test'
23-
runs-on: ubuntu-20.04
24-
strategy:
25-
matrix:
26-
rust:
27-
- stable
28-
- beta
29-
- nightly
23+
runs-on: ubuntu-latest
3024
steps:
31-
- uses: actions/checkout@v2
32-
- name: Install Rust toolchain
33-
uses: actions-rs/toolchain@v1
34-
with:
35-
toolchain: ${{ matrix.rust }}
36-
override: true
37-
profile: minimal
38-
- name: Prepare cache key
39-
run: |
40-
cargo generate-lockfile
41-
cp Cargo.lock cache-fingerprint
42-
echo $RUSTFLAGS >> cache-fingerprint
43-
echo $(rustc -V) >> cache-fingerprint
44-
- name: Restore cargo cache
45-
uses: actions/cache@v2
46-
with:
47-
path: |
48-
~/.cargo/registry
49-
~/.cargo/git
50-
target
51-
key: ${{ runner.os }}-cargo-${{ hashFiles('cache-fingerprint') }}
25+
- uses: actions/checkout@v6
5226
- name: Build
5327
run: cargo build
5428
- name: Build benchmarks
@@ -59,12 +33,11 @@ jobs:
5933
- name: Generate docs
6034
run: cargo doc
6135

62-
# We do not use a cache here as Miri prefers a clean working directory anyway.
6336
check-miri:
6437
name: 'Run tests with miri'
65-
runs-on: ubuntu-20.04
38+
runs-on: ubuntu-latest
6639
steps:
67-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v6
6841
- name: Install Rust toolchain
6942
uses: actions-rs/toolchain@v1
7043
with:

0 commit comments

Comments
 (0)