Skip to content

Commit

Permalink
update workflows (#38)
Browse files Browse the repository at this point in the history
- update checkout to v4
- replace deprecated actions-rs with dtolnay/rust-toolchain
- test with miri
  • Loading branch information
vxpm authored Oct 24, 2023
1 parent d466ce4 commit fd5bf7b
Showing 1 changed file with 15 additions and 24 deletions.
39 changes: 15 additions & 24 deletions .github/workflows/rust-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,39 @@ env:
CARGO_TERM_COLOR: always

jobs:
build-stable:
test-stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Checkout
uses: actions/checkout@v4
- name: Install Stable Rust Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run cargo check
run: |
cargo check --verbose;
cargo check --features small-vec --verbose;
cargo check --features thin-segments --verbose;
cargo check --features small-vec --features thin-segments --verbose;
- name: Run tests
run: |
cargo test --verbose;
cargo test --features small-vec --verbose;
cargo test --features thin-segments --verbose;
cargo test --features small-vec --features thin-segments --verbose;
build-nightly:
test-nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
- name: Checkout
uses: actions/checkout@v4
- name: Install Nightly Rust Toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
override: true
components: rustfmt, clippy, miri
components: miri
- name: Run cargo check
run: |
cargo check --verbose;
cargo check --features small-vec --verbose;
cargo check --features thin-segments --verbose;
cargo check --features small-vec --features thin-segments --verbose;
- name: Run tests
run: |
cargo test --verbose;
cargo miri test --verbose;
cargo test --features small-vec --verbose;
cargo test --features thin-segments --verbose;
cargo test --features small-vec --features thin-segments --verbose;
- name: Run tests under Miri
run: |
cargo miri test --verbose;
cargo miri test --features small-vec --verbose;

0 comments on commit fd5bf7b

Please sign in to comment.