Skip to content

Commit

Permalink
replace MIPS with Miri for cross endian tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Oct 15, 2023
1 parent dfe6f21 commit 3f05853
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/rust.yml
Expand Up @@ -84,18 +84,19 @@ jobs:
cd ./tests/smoke-test
cargo +$msrv build
mips:
name: Tests / MIPS (Big Endian)
miri:
name: "Miri"
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Cross
run: cargo install cross

- uses: actions/checkout@v3
- name: Install Miri
run: |
rustup toolchain install nightly --component miri
cargo +nightly miri setup
- name: Default features
run: cross test --target mips-unknown-linux-gnu
run: cargo +nightly miri test
- name: BE
run: cargo +nightly miri test --target s390x-unknown-linux-gnu

clippy:
name: Clippy
Expand Down
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -46,11 +46,17 @@ use bitflags::bitflags;

// The `bitflags!` macro generates `struct`s that manage a set of flags.
bitflags! {
/// Represents a set of flags.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
struct Flags: u32 {
/// The value `A`, at bit position `0`.
const A = 0b00000001;
/// The value `B`, at bit position `1`.
const B = 0b00000010;
/// The value `C`, at bit position `2`.
const C = 0b00000100;

/// The combination of `A`, `B`, and `C`.
const ABC = Self::A.bits() | Self::B.bits() | Self::C.bits();
}
}
Expand Down

0 comments on commit 3f05853

Please sign in to comment.