Skip to content

Commit

Permalink
Add MSRV check to CI (#20)
Browse files Browse the repository at this point in the history
* Add MSRV job to CI

* Update CI

* Add MSRV note to README
  • Loading branch information
FreezyLemon authored Apr 9, 2024
1 parent 88a5703 commit a27b39f
Show file tree
Hide file tree
Showing 4 changed files with 1,134 additions and 8 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,29 @@ on:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
msrv:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
# rust-version from Cargo.toml
- name: Install Rust 1.65.0
uses: dtolnay/[email protected]
- name: Use predefined lockfile
run: mv Cargo.lock.MSRV Cargo.lock
- name: Build
run: cargo check --locked

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4
- name: Build
run: cargo build
- name: Run tests
run: cargo test
Loading

0 comments on commit a27b39f

Please sign in to comment.