13
13
env :
14
14
RUSTFLAGS : -Dwarnings
15
15
RUST_BACKTRACE : 1
16
- minrust : ' 1.56'
16
+
17
+ defaults :
18
+ run :
19
+ shell : bash
20
+
21
+ concurrency :
22
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
23
+ cancel-in-progress : true
17
24
18
25
jobs :
19
26
test :
@@ -29,21 +36,19 @@ jobs:
29
36
runs-on : ubuntu-latest
30
37
steps :
31
38
- uses : actions/checkout@v4
32
- - name : Install Rust
33
- run : rustup update ${{ env.minrust }} && rustup default ${{ env.minrust }}
34
- - run : cargo check --workspace --all-features
39
+ - name : Install cargo-hack
40
+ uses : taiki-e/install-action@cargo-hack
41
+ - run : cargo hack check --workspace --all-features --ignore-private --rust-version
35
42
36
43
no-std :
37
44
strategy :
38
45
fail-fast : false
39
46
matrix :
40
47
# thumbv7m-none-eabi supports atomic CAS.
41
- # thumbv6m-none-eabi supports atomic, but not atomic CAS.
42
- # riscv32i-unknown-none-elf does not support atomic at all.
48
+ # thumbv6m-none-eabi supports atomic load/store, but not atomic CAS.
43
49
target :
44
50
- thumbv6m-none-eabi
45
51
- thumbv7m-none-eabi
46
- - riscv32i-unknown-none-elf
47
52
runs-on : ubuntu-latest
48
53
steps :
49
54
- uses : actions/checkout@v4
88
93
echo "::set-output name=success::false"
89
94
fi
90
95
if : github.repository_owner == 'tokio-rs' && github.event_name == 'schedule'
91
- - uses : peter-evans/create-pull-request@v3
96
+ - uses : peter-evans/create-pull-request@v6
92
97
with :
93
98
title : Update no_atomic.rs
94
99
body : |
@@ -106,7 +111,7 @@ jobs:
106
111
- uses : actions/checkout@v4
107
112
- name : Install Rust
108
113
run : rustup update stable
109
- - run : cargo fmt --all -- -- check
114
+ - run : cargo fmt --all --check
110
115
111
116
docs :
112
117
runs-on : ubuntu-latest
0 commit comments