Skip to content

Commit bbb03c7

Browse files
authored
Merge pull request #124 from striezel-stash/actions-update
Update GitHub Actions CI
2 parents d2bcbf8 + 87e680f commit bbb03c7

File tree

1 file changed

+10
-31
lines changed

1 file changed

+10
-31
lines changed

.github/workflows/main.yml

+10-31
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,26 @@ jobs:
1313
rust: [1.36.0, stable, beta, nightly]
1414
runs-on: ${{ matrix.os }}
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions-rs/toolchain@v1
16+
- uses: actions/checkout@v4
17+
- uses: dtolnay/rust-toolchain@master
1818
with:
1919
toolchain: ${{ matrix.rust }}
20-
override: true
21-
profile: minimal
2220
- name: Unpin dependencies except on MSRV
2321
if: matrix.rust != '1.36.0'
2422
run: cargo update
25-
- uses: actions-rs/cargo@v1
26-
with:
27-
command: build
28-
args: --all-targets
29-
- uses: actions-rs/cargo@v1
30-
with:
31-
command: test
32-
- uses: actions-rs/cargo@v1
33-
with:
34-
command: test
35-
args: --features "serde"
36-
- uses: actions-rs/cargo@v1
37-
with:
38-
command: test
39-
args: --no-default-features
40-
- uses: actions-rs/cargo@v1
41-
with:
42-
command: test
43-
args: --no-default-features --features=hardcoded-data
23+
- run: cargo build --all-targets
24+
- run: cargo test
25+
- run: cargo test --features "serde"
26+
- run: cargo test --no-default-features
27+
- run: cargo test --no-default-features --features=hardcoded-data
4428
Fmt:
4529
runs-on: ubuntu-latest
4630
steps:
47-
- uses: actions/checkout@v2
48-
- uses: actions-rs/toolchain@v1
31+
- uses: actions/checkout@v4
32+
- uses: dtolnay/rust-toolchain@stable
4933
with:
50-
toolchain: stable
51-
override: true
5234
components: rustfmt
53-
- uses: actions-rs/cargo@v1
54-
with:
55-
command: fmt
56-
args: --check
35+
- run: cargo fmt --check
5736

5837
build_result:
5938
name: homu build finished

0 commit comments

Comments
 (0)