Skip to content

Commit

Permalink
Add MSRV build-and-test to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
cessen committed Nov 7, 2023
1 parent d41ee24 commit 761f1da
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,31 @@ env:
CARGO_TERM_COLOR: always

jobs:
build-and-test-stable:
name: Build and test, Rust-stable
build-and-test:
name: Build and test
strategy:
matrix:
toolchain:
- stable
- beta
- "1.65"
runs-on: ubuntu-latest
steps:
# Get a checkout and rust toolchain.
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{matrix.toolchain}}
override: true

# Build and test
- run: cargo +stable build
- run: cargo +stable test
- run: cargo +stable test --no-default-features line
- run: cargo +stable test --no-default-features --features=cr_lines line
- run: cargo +stable bench --no-run
- run: cargo +${{matrix.toolchain}} build
- run: cargo +${{matrix.toolchain}} test
- run: cargo +${{matrix.toolchain}} test --no-default-features line
- run: cargo +${{matrix.toolchain}} test --no-default-features --features=cr_lines line
- run: cargo +${{matrix.toolchain}} bench --no-run

build-and-test-beta:
name: Build and test, Rust-beta
runs-on: ubuntu-latest
steps:
# Get a checkout and rust toolchain.
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: beta
override: true

# Build and test
- run: cargo +beta build
- run: cargo +beta test
- run: cargo +beta bench --no-run
run-miri:
name: Run Miri
runs-on: ubuntu-latest
Expand Down

0 comments on commit 761f1da

Please sign in to comment.