Skip to content

Commit

Permalink
Merge pull request #129 from notgull/ci
Browse files Browse the repository at this point in the history
Fix CI failure
  • Loading branch information
zesterer committed Oct 18, 2022
2 parents 7bc78d1 + 395fc70 commit 8181441
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,36 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable, beta, nightly]

steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: Run Tests
run: cargo test --verbose
- run: cargo build --all --all-features --all-targets
- name: Catch missing feature flags
if: startsWith(matrix.rust, 'nightly')
run: cargo check -Z features=dev_dep
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- run: rustup target add thumbv7m-none-eabi
- name: Ensure we don't depend on libstd
run: cargo hack build --target thumbv7m-none-eabi --no-dev-deps --no-default-features

miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup toolchain install nightly --component miri && rustup default nightly
- run: cargo miri test
env:
MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zmiri-disable-isolation -Zmiri-ignore-leaks
RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout

0 comments on commit 8181441

Please sign in to comment.