Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed May 29, 2024
1 parent 2c1b83e commit a1bf4db
Showing 1 changed file with 22 additions and 28 deletions.
50 changes: 22 additions & 28 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,6 @@ env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

jobs:
rustfmt_and_clippy:
name: Rustfmt and Clippy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust Nightly with rustfmt and clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, clippy

- uses: Swatinem/[email protected]

- name: "Check formatting"
run: cargo +nightly fmt --check --all

- name: Run Clippy
run: cargo clippy --all-targets --all-features

build_and_test:
name: "Build and Test"
runs-on: ubuntu-latest
Expand All @@ -47,9 +26,6 @@ jobs:

- uses: Swatinem/[email protected]

- name: Cargo update
run: cargo update

- name: "Build"
run: cargo build

Expand All @@ -63,6 +39,27 @@ jobs:
# RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --workspace --lib --document-private-items --examples

rustfmt_and_clippy:
name: Rustfmt and Clippy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust Nightly with rustfmt and clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, clippy

- uses: Swatinem/[email protected]

- name: "Check formatting"
run: cargo +nightly fmt --check --all

- name: Run Clippy
run: cargo clippy --all-targets --all-features

miri:
if: ( ! github.event.pull_request.draft )
name: "Test with Miri"
Expand All @@ -71,16 +68,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Stable
- name: Install Rust nightly with Miri
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: miri

- uses: Swatinem/[email protected]

- name: Cargo update
run: cargo update

- name: Test with Miri on x86_64
run: cargo miri test -p clmul -p matrix-transpose --target x86_64-unknown-linux-gnu
Expand Down

0 comments on commit a1bf4db

Please sign in to comment.