Skip to content

Commit

Permalink
Update no_atomic.rs and CI config (#127)
Browse files Browse the repository at this point in the history
Co-authored-by: Taiki Endo <te316e89@gmail.com>
  • Loading branch information
github-actions[bot] and taiki-e authored Feb 23, 2024
1 parent b4103db commit c8668b0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ on:
env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
minrust: '1.56'

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
test:
Expand All @@ -29,21 +36,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update ${{ env.minrust }} && rustup default ${{ env.minrust }}
- run: cargo check --workspace --all-features
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --workspace --all-features --ignore-private --rust-version

no-std:
strategy:
fail-fast: false
matrix:
# thumbv7m-none-eabi supports atomic CAS.
# thumbv6m-none-eabi supports atomic, but not atomic CAS.
# riscv32i-unknown-none-elf does not support atomic at all.
# thumbv6m-none-eabi supports atomic load/store, but not atomic CAS.
target:
- thumbv6m-none-eabi
- thumbv7m-none-eabi
- riscv32i-unknown-none-elf
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -88,7 +93,7 @@ jobs:
echo "::set-output name=success::false"
fi
if: github.repository_owner == 'tokio-rs' && github.event_name == 'schedule'
- uses: peter-evans/create-pull-request@v3
- uses: peter-evans/create-pull-request@v6
with:
title: Update no_atomic.rs
body: |
Expand All @@ -106,7 +111,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- run: cargo fmt --all -- --check
- run: cargo fmt --all --check

docs:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions valuable/no_atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ const NO_ATOMIC_64: &[&str] = &[
"powerpc-wrs-vxworks-spe",
"riscv32gc-unknown-linux-gnu",
"riscv32gc-unknown-linux-musl",
"riscv32i-unknown-none-elf",
"riscv32im-unknown-none-elf",
"riscv32imac-esp-espidf",
"riscv32imac-unknown-none-elf",
"riscv32imac-unknown-xous-elf",
"riscv32imafc-unknown-none-elf",
"riscv32imc-esp-espidf",
"riscv32imc-unknown-none-elf",
"sparc-unknown-linux-gnu",
"sparc-unknown-none-elf",
"thumbv4t-none-eabi",
Expand All @@ -73,7 +77,4 @@ const NO_ATOMIC: &[&str] = &[
"bpfel-unknown-none",
"mipsel-sony-psx",
"msp430-none-elf",
"riscv32i-unknown-none-elf",
"riscv32im-unknown-none-elf",
"riscv32imc-unknown-none-elf",
];

0 comments on commit c8668b0

Please sign in to comment.