mirror of
https://github.com/helix-editor/helix.git
synced 2024-12-18 05:51:54 +04:00
CI: Use an env var for MSRV
This just reduces duplication in the build workflow - no functional change - to make updating the MSRV easier in the future.
This commit is contained in:
parent
cf81e15315
commit
403aaa8cf3
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -8,6 +8,9 @@ on:
|
||||
schedule:
|
||||
- cron: "00 01 * * *"
|
||||
|
||||
env:
|
||||
MSRV: "1.76"
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Check (msrv)
|
||||
@ -18,7 +21,9 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install MSRV toolchain
|
||||
uses: dtolnay/rust-toolchain@1.76
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ env.MSRV }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
@ -39,7 +44,9 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install MSRV toolchain
|
||||
uses: dtolnay/rust-toolchain@1.76
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ env.MSRV }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
@ -71,8 +78,9 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install MSRV toolchain
|
||||
uses: dtolnay/rust-toolchain@1.76
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ env.MSRV }}
|
||||
components: rustfmt, clippy
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
@ -99,7 +107,9 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install MSRV toolchain
|
||||
uses: dtolnay/rust-toolchain@1.76
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ env.MSRV }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user