|
8 | 8 | runs-on: ubuntu-latest |
9 | 9 |
|
10 | 10 | steps: |
11 | | - - uses: actions/checkout@v2 |
| 11 | + - uses: actions/checkout@v4 |
| 12 | + - uses: dtolnay/rust-toolchain@stable |
12 | 13 |
|
13 | 14 | - name: rustfmt |
14 | | - uses: actions-rs/cargo@v1 |
15 | | - with: |
16 | | - command: fmt |
17 | | - args: --all -- --check |
| 15 | + run: cargo fmt --all -- --check |
18 | 16 |
|
19 | 17 | - 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 |
24 | 19 |
|
25 | 20 | - name: tests (async) |
26 | | - uses: actions-rs/cargo@v1 |
27 | 21 | timeout-minutes: 40 |
28 | | - with: |
29 | | - command: test |
30 | | - args: --all --no-fail-fast -- --nocapture |
| 22 | + run: cargo test --all --no-fail-fast -- --nocapture |
31 | 23 |
|
32 | 24 | - 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 |
37 | 26 |
|
38 | 27 | - name: tests (is_sync) |
39 | | - uses: actions-rs/cargo@v1 |
40 | 28 | 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 |
44 | 30 |
|
45 | 31 | doc: |
46 | 32 | runs-on: ubuntu-latest |
47 | 33 | steps: |
48 | | - - uses: actions/checkout@v2 |
| 34 | + - uses: actions/checkout@v4 |
| 35 | + - uses: dtolnay/rust-toolchain@stable |
49 | 36 |
|
50 | 37 | - name: doc (async) |
51 | | - uses: actions-rs/cargo@v1 |
52 | 38 | env: |
53 | 39 | RUSTDOCFLAGS: -Dwarnings |
54 | | - with: |
55 | | - command: doc |
56 | | - args: --all --no-deps |
| 40 | + run: cargo doc --all --no-deps |
57 | 41 |
|
58 | 42 | - name: doc (is_sync) |
59 | | - uses: actions-rs/cargo@v1 |
60 | 43 | env: |
61 | 44 | 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 |
65 | 46 |
|
66 | 47 | publish: |
67 | 48 | name: Publish Package |
68 | 49 | needs: build_and_test |
69 | 50 | if: startsWith(github.ref, 'refs/tags/v') |
70 | 51 | runs-on: ubuntu-latest |
71 | 52 | steps: |
72 | | - - uses: actions/checkout@v2 |
73 | | - |
| 53 | + - uses: actions/checkout@v4 |
| 54 | + - uses: dtolnay/rust-toolchain@stable |
74 | 55 | - name: login |
75 | 56 | env: |
76 | 57 | SUPER_SECRET: ${{ secrets.CARGO_TOKEN }} |
77 | 58 | run: cargo login "$SUPER_SECRET" |
78 | | - shell: bash |
79 | 59 |
|
80 | 60 | - name: publish |
81 | | - uses: actions-rs/cargo@v1 |
82 | | - with: |
83 | | - command: publish |
| 61 | + run: cargo publish |
0 commit comments