Skip to content

Commit

Permalink
Merge pull request #128 from mvdnes/revert-127-ci
Browse files Browse the repository at this point in the history
Revert "Add more tests to the CI"
  • Loading branch information
zesterer committed Oct 9, 2022
2 parents e7433e7 + 418e8f5 commit 7bc78d1
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,13 @@ env:
CARGO_TERM_COLOR: always

jobs:
test:
build:

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

steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: Run Tests
- name: Build
run: cargo build --verbose
- 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 update nightly --component miri && rustup default nightly
- run: cargo miri test
env:
MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zmiri-disable-isolation
RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout

0 comments on commit 7bc78d1

Please sign in to comment.