Skip to content

Commit 279d80c

Browse files
authored
Merge pull request #51 from mkroening/ci-actions
ci: migrate away from unmaintained actions
2 parents 4100da0 + 7afbc49 commit 279d80c

File tree

1 file changed

+17
-85
lines changed

1 file changed

+17
-85
lines changed

.github/workflows/build.yml

+17-85
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
2-
#
3-
# While our "example" application has the platform-specific code,
4-
# for simplicity we are compiling and testing everything on the Ubuntu environment only.
5-
# For multi-OS testing see the `cross.yml` workflow.
6-
71
on: [push, pull_request]
82

93
name: Build
@@ -16,103 +10,41 @@ jobs:
1610
name: Check
1711
runs-on: ubuntu-latest
1812
steps:
19-
- name: Checkout sources
20-
uses: actions/checkout@v2
21-
22-
- name: Install stable toolchain
23-
uses: actions-rs/toolchain@v1
24-
with:
25-
profile: minimal
26-
toolchain: stable
27-
override: true
28-
29-
- name: Run cargo check
30-
uses: actions-rs/cargo@v1
31-
with:
32-
command: check
13+
- uses: actions/checkout@v4
14+
- uses: dtolnay/rust-toolchain@stable
15+
- run: cargo check --workspace
3316

3417
test:
3518
name: Test Suite
3619
runs-on: ubuntu-latest
3720
steps:
38-
- name: Checkout sources
39-
uses: actions/checkout@v2
40-
41-
- name: Install stable toolchain
42-
uses: actions-rs/toolchain@v1
43-
with:
44-
profile: minimal
45-
toolchain: stable
46-
override: true
47-
48-
- name: Run cargo test
49-
uses: actions-rs/cargo@v1
50-
with:
51-
command: test
21+
- uses: actions/checkout@v4
22+
- uses: dtolnay/rust-toolchain@stable
23+
- run: cargo test --workspace
5224

5325
unstable:
5426
name: Test Suite (unstable)
5527
runs-on: ubuntu-latest
5628
steps:
57-
- name: Checkout sources
58-
uses: actions/checkout@v2
59-
60-
- name: Install nightly toolchain
61-
uses: actions-rs/toolchain@v1
62-
with:
63-
profile: minimal
64-
toolchain: nightly
65-
override: true
66-
67-
- name: Run cargo test --features unstable
68-
uses: actions-rs/cargo@v1
69-
with:
70-
command: test
71-
args: --features unstable
29+
- uses: actions/checkout@v4
30+
- uses: dtolnay/rust-toolchain@nightly
31+
- run: cargo test --workspace --features unstable
7232

7333
very_unstable:
7434
name: Test Suite (very_unstable)
7535
runs-on: ubuntu-latest
7636
steps:
77-
- name: Checkout sources
78-
uses: actions/checkout@v2
79-
80-
- name: Install nightly toolchain
81-
uses: actions-rs/toolchain@v1
82-
with:
83-
profile: minimal
84-
toolchain: nightly
85-
override: true
86-
87-
- name: Run cargo test --features very_unstable
88-
uses: actions-rs/cargo@v1
89-
with:
90-
command: test
91-
args: --features very_unstable
92-
37+
- uses: actions/checkout@v4
38+
- uses: dtolnay/rust-toolchain@nightly
39+
- run: cargo test --workspace --features very_unstable
9340

9441
lints:
9542
name: Lints
9643
runs-on: ubuntu-latest
9744
steps:
98-
- name: Checkout sources
99-
uses: actions/checkout@v2
100-
101-
- name: Install stable toolchain
102-
uses: actions-rs/toolchain@v1
103-
with:
104-
profile: minimal
105-
toolchain: stable
106-
override: true
107-
components: rustfmt, clippy
108-
109-
- name: Run cargo fmt
110-
uses: actions-rs/cargo@v1
111-
with:
112-
command: fmt
113-
args: --all -- --check
114-
115-
- name: Run cargo clippy
116-
uses: actions-rs/cargo@v1
45+
- uses: actions/checkout@v4
46+
- uses: dtolnay/rust-toolchain@stable
11747
with:
118-
command: clippy
48+
components: clippy, rustfmt
49+
- run: cargo fmt --all --check
50+
- run: cargo clippy --workspace

0 commit comments

Comments
 (0)