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 715b6ea
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ 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.
Expand All @@ -27,28 +33,12 @@ jobs:
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 715b6ea

Please sign in to comment.