Skip to content

Commit b32a817

Browse files
committed
ci: update github actions
1 parent 9e25324 commit b32a817

File tree

1 file changed

+14
-36
lines changed

1 file changed

+14
-36
lines changed

.github/workflows/linux.yml

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,76 +8,54 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
12+
- uses: dtolnay/rust-toolchain@stable
1213

1314
- name: rustfmt
14-
uses: actions-rs/cargo@v1
15-
with:
16-
command: fmt
17-
args: --all -- --check
15+
run: cargo fmt --all -- --check
1816

1917
- name: check build (async)
20-
uses: actions-rs/cargo@v1
21-
with:
22-
command: check
23-
args: --all --bins --examples --tests
18+
run: cargo check --all --bins --examples --tests
2419

2520
- name: tests (async)
26-
uses: actions-rs/cargo@v1
2721
timeout-minutes: 40
28-
with:
29-
command: test
30-
args: --all --no-fail-fast -- --nocapture
22+
run: cargo test --all --no-fail-fast -- --nocapture
3123

3224
- name: check build (is_sync)
33-
uses: actions-rs/cargo@v1
34-
with:
35-
command: check
36-
args: --features=is_sync --all --bins --examples --tests
25+
run: cargo check --features=is_sync --all --bins --examples --tests
3726

3827
- name: tests (is_sync)
39-
uses: actions-rs/cargo@v1
4028
timeout-minutes: 40
41-
with:
42-
command: test
43-
args: --features=is_sync --all --no-fail-fast -- --nocapture
29+
run: cargo test --features=is_sync --all --no-fail-fast -- --nocapture
4430

4531
doc:
4632
runs-on: ubuntu-latest
4733
steps:
48-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v4
35+
- uses: dtolnay/rust-toolchain@stable
4936

5037
- name: doc (async)
51-
uses: actions-rs/cargo@v1
5238
env:
5339
RUSTDOCFLAGS: -Dwarnings
54-
with:
55-
command: doc
56-
args: --all --no-deps
40+
run: cargo doc --all --no-deps
5741

5842
- name: doc (is_sync)
59-
uses: actions-rs/cargo@v1
6043
env:
6144
RUSTDOCFLAGS: -Dwarnings
62-
with:
63-
command: doc
64-
args: --all --no-deps --features=is_sync
45+
run: cargo doc --all --no-deps --features=is_sync
6546

6647
publish:
6748
name: Publish Package
6849
needs: build_and_test
6950
if: startsWith(github.ref, 'refs/tags/v')
7051
runs-on: ubuntu-latest
7152
steps:
72-
- uses: actions/checkout@v2
73-
53+
- uses: actions/checkout@v4
54+
- uses: dtolnay/rust-toolchain@stable
7455
- name: login
7556
env:
7657
SUPER_SECRET: ${{ secrets.CARGO_TOKEN }}
7758
run: cargo login "$SUPER_SECRET"
78-
shell: bash
7959

8060
- name: publish
81-
uses: actions-rs/cargo@v1
82-
with:
83-
command: publish
61+
run: cargo publish

0 commit comments

Comments
 (0)