Skip to content

Commit c8668b0

Browse files
Update no_atomic.rs and CI config (#127)
Co-authored-by: Taiki Endo <[email protected]>
1 parent b4103db commit c8668b0

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ on:
1313
env:
1414
RUSTFLAGS: -Dwarnings
1515
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
1724

1825
jobs:
1926
test:
@@ -29,21 +36,19 @@ jobs:
2936
runs-on: ubuntu-latest
3037
steps:
3138
- 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
3542

3643
no-std:
3744
strategy:
3845
fail-fast: false
3946
matrix:
4047
# 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.
4349
target:
4450
- thumbv6m-none-eabi
4551
- thumbv7m-none-eabi
46-
- riscv32i-unknown-none-elf
4752
runs-on: ubuntu-latest
4853
steps:
4954
- uses: actions/checkout@v4
@@ -88,7 +93,7 @@ jobs:
8893
echo "::set-output name=success::false"
8994
fi
9095
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
9297
with:
9398
title: Update no_atomic.rs
9499
body: |
@@ -106,7 +111,7 @@ jobs:
106111
- uses: actions/checkout@v4
107112
- name: Install Rust
108113
run: rustup update stable
109-
- run: cargo fmt --all -- --check
114+
- run: cargo fmt --all --check
110115

111116
docs:
112117
runs-on: ubuntu-latest

valuable/no_atomic.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ const NO_ATOMIC_64: &[&str] = &[
5050
"powerpc-wrs-vxworks-spe",
5151
"riscv32gc-unknown-linux-gnu",
5252
"riscv32gc-unknown-linux-musl",
53+
"riscv32i-unknown-none-elf",
54+
"riscv32im-unknown-none-elf",
5355
"riscv32imac-esp-espidf",
5456
"riscv32imac-unknown-none-elf",
5557
"riscv32imac-unknown-xous-elf",
58+
"riscv32imafc-unknown-none-elf",
5659
"riscv32imc-esp-espidf",
60+
"riscv32imc-unknown-none-elf",
5761
"sparc-unknown-linux-gnu",
5862
"sparc-unknown-none-elf",
5963
"thumbv4t-none-eabi",
@@ -73,7 +77,4 @@ const NO_ATOMIC: &[&str] = &[
7377
"bpfel-unknown-none",
7478
"mipsel-sony-psx",
7579
"msp430-none-elf",
76-
"riscv32i-unknown-none-elf",
77-
"riscv32im-unknown-none-elf",
78-
"riscv32imc-unknown-none-elf",
7980
];

0 commit comments

Comments
 (0)