Skip to content

Commit

Permalink
CI: Define MSRV in variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jirutka committed Dec 5, 2024
1 parent 6bb02c9 commit 25e5ddf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
- push
- pull_request

env:
MSRV: '1.70'

jobs:
test:
name: Run tests on Rust ${{ matrix.toolchain }} (${{ matrix.os }})
Expand All @@ -12,7 +15,7 @@ jobs:
matrix:
toolchain:
- stable
- '1.70'
- ${{ vars.MSRV }}
- nightly
os:
- ubuntu
Expand Down Expand Up @@ -57,10 +60,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Rust 1.70
- name: Install Rust ${{ vars.MSRV }}
uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.70'
toolchain: ${{ vars.MSRV }}
components: rustfmt, clippy

- name: Set up caching
Expand Down

0 comments on commit 25e5ddf

Please sign in to comment.