diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad44fe2..35c381f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 @@ -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: | @@ -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 diff --git a/valuable/no_atomic.rs b/valuable/no_atomic.rs index 631e6b0..1df2439 100644 --- a/valuable/no_atomic.rs +++ b/valuable/no_atomic.rs @@ -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", @@ -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", ];