Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .github/scripts/install_test_binaries.sh

This file was deleted.

71 changes: 34 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI

permissions:
contents: read

on:
push:
branches: [main]
Expand All @@ -17,6 +20,8 @@ jobs:
name: test ${{ matrix.rust }} ${{ matrix.flags }}
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: write
strategy:
fail-fast: false
matrix:
Expand All @@ -27,20 +32,12 @@ jobs:
- rust: "1.88" # MSRV
flags: "--all-features"
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
- uses: actions/checkout@v5
with:
version: nightly
- name: Install test binaries
shell: bash
run: ./.github/scripts/install_test_binaries.sh
Comment on lines -34 to -40
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are unused

- uses: Swatinem/rust-cache@v2
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
with:
cache-on-failure: true
toolchain: ${{ matrix.rust }}
# Only run tests on latest stable and above
- name: Install cargo-nextest
if: ${{ matrix.rust != '1.88' }} # MSRV
Expand All @@ -55,35 +52,28 @@ jobs:
doctest:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo test --workspace --doc
- run: cargo test --all-features --workspace --doc

no-std:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
target: riscv32imac-unknown-none-elf
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: check
run: ./scripts/check_no_std.sh
Comment on lines -67 to -80
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: drops explicit no-std requirement per discussion


feature-checks:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
Expand All @@ -95,24 +85,29 @@ jobs:
clippy:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
- uses: actions/checkout@v5
with:
toolchain: stable
components: clippy
persist-credentials: false
- uses: dtolnay/rust-toolchain@clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo +stable clippy --workspace --all-targets --all-features
- run: cargo clippy --workspace --all-targets --all-features
env:
RUSTFLAGS: -Dwarnings

docs:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -125,7 +120,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
Expand All @@ -137,10 +134,10 @@ jobs:
ci-success:
runs-on: ubuntu-latest
if: always()
permissions: {}
needs:
- test
- doctest
- no-std
- feature-checks
- clippy
- docs
Expand Down
20 changes: 0 additions & 20 deletions scripts/check_no_std.sh

This file was deleted.