Skip to content

Commit c8ec2f0

Browse files
authored
CI: Replace deprecated/unmaintained actions-rs with simple run: steps (#92)
The `actions-rs` containers haven't been maintained and updated for years and don't need to: GitHub's actions environment already comes fully loaded with a complete stable Rust installation with the standard tools (clippy, rustfmt, rustdoc). Simple `run:` commands relate directly to what a developer can type in locally to "reproduce" the CI environment while they might be following up on CI failures, and no longer spam ancient Node 12 deprecation warnings.
1 parent 6a6017b commit c8ec2f0

File tree

1 file changed

+13
-64
lines changed

1 file changed

+13
-64
lines changed

.github/workflows/ci.yml

+13-64
Original file line numberDiff line numberDiff line change
@@ -11,98 +11,47 @@ jobs:
1111
steps:
1212
- run: sudo apt-get install libv4l-dev
1313
- uses: actions/checkout@v4
14-
- uses: actions-rs/toolchain@v1
15-
with:
16-
profile: minimal
17-
toolchain: stable
18-
override: true
19-
- uses: actions-rs/cargo@v1
20-
name: Check `v4l2`
21-
with:
22-
command: check
23-
args: --workspace --all-targets
24-
- uses: actions-rs/cargo@v1
25-
name: Check `libv4l`
26-
with:
27-
command: check
28-
args: --workspace --all-targets --no-default-features --features libv4l
14+
- name: Check `v4l2`
15+
run: cargo check --workspace --all-targets
16+
- name: Check `libv4l`
17+
run: cargo check --workspace --all-targets --no-default-features --features libv4l
2918

3019
test:
3120
name: Test
3221
runs-on: ubuntu-20.04
3322
steps:
3423
- run: sudo apt-get install libv4l-dev
3524
- uses: actions/checkout@v4
36-
- uses: actions-rs/toolchain@v1
37-
with:
38-
profile: minimal
39-
toolchain: stable
40-
override: true
4125
- name: Test all targets
42-
uses: actions-rs/cargo@v1
43-
with:
44-
command: test
45-
args: --workspace --all-targets
26+
run: cargo test --workspace --all-targets
4627
- name: Test docs
47-
uses: actions-rs/cargo@v1
48-
with:
49-
command: test
50-
args: --workspace --doc
28+
run: cargo test --workspace --doc
5129

5230
fmt:
5331
name: Rustfmt
5432
runs-on: ubuntu-20.04
5533
steps:
5634
- uses: actions/checkout@v4
57-
- uses: actions-rs/toolchain@v1
58-
with:
59-
profile: minimal
60-
toolchain: stable
61-
override: true
62-
components: rustfmt
63-
- uses: actions-rs/cargo@v1
64-
with:
65-
command: fmt
66-
args: --all -- --check
35+
- run: cargo fmt --all -- --check
6736

6837
clippy:
6938
name: Clippy
7039
runs-on: ubuntu-20.04
7140
steps:
7241
- run: sudo apt-get install libv4l-dev
7342
- uses: actions/checkout@v4
74-
- uses: actions-rs/toolchain@v1
75-
with:
76-
profile: minimal
77-
toolchain: stable
78-
override: true
79-
components: clippy
80-
- uses: actions-rs/cargo@v1
81-
name: Clippy lint `v4l2`
82-
with:
83-
command: clippy
84-
args: --workspace --all-targets -- -D warnings
85-
- uses: actions-rs/cargo@v1
86-
name: Clippy lint `libv4l`
87-
with:
88-
command: clippy
89-
args: --workspace --all-targets --no-default-features --features libv4l -- -D warnings
43+
- name: Clippy lint `v4l2`
44+
run: cargo clippy --workspace --all-targets -- -D warnings
45+
- name: Clippy lint `libv4l`
46+
run: cargo clippy --workspace --all-targets --no-default-features --features libv4l -- -D warnings
9047

9148
docs:
9249
name: Build-test docs
9350
runs-on: ubuntu-20.04
9451
steps:
9552
- run: sudo apt-get install libv4l-dev
9653
- uses: actions/checkout@v4
97-
- uses: actions-rs/toolchain@v1
98-
with:
99-
profile: minimal
100-
toolchain: stable
101-
override: true
102-
- uses: actions-rs/cargo@v1
103-
name: Document all crates
54+
- name: Document all crates
10455
env:
10556
RUSTDOCFLAGS: -Dwarnings
106-
with:
107-
command: doc
108-
args: --workspace --no-deps --document-private-items
57+
run: cargo doc --workspace --no-deps --document-private-items

0 commit comments

Comments
 (0)