Skip to content

Commit d210bdd

Browse files
committed
add msrv to env to prevent so much duplication
1 parent 3c7bebd commit d210bdd

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/zeroize.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- "zeroize/**"
88
- "Cargo.*"
99
push:
10-
branches: master
10+
branches: [master]
1111

1212
permissions:
1313
contents: read
@@ -19,14 +19,15 @@ defaults:
1919
env:
2020
CARGO_INCREMENTAL: 0
2121
RUSTFLAGS: "-Dwarnings"
22+
MSRV: 1.61.0
2223

2324
jobs:
2425
build:
2526
runs-on: ubuntu-latest
2627
strategy:
2728
matrix:
2829
rust:
29-
- 1.61.0 # MSRV
30+
- ${{ MSRV }}
3031
- stable
3132
target:
3233
- armv7a-none-eabi
@@ -53,7 +54,7 @@ jobs:
5354
# 32-bit Linux
5455
- target: i686-unknown-linux-gnu
5556
platform: ubuntu-latest
56-
rust: 1.61.0 # MSRV
57+
rust: ${{ MSRV }}
5758
deps: sudo apt update && sudo apt install gcc-multilib
5859
- target: i686-unknown-linux-gnu
5960
platform: ubuntu-latest
@@ -63,23 +64,23 @@ jobs:
6364
# 64-bit Linux
6465
- target: x86_64-unknown-linux-gnu
6566
platform: ubuntu-latest
66-
rust: 1.61.0 # MSRV
67+
rust: ${{ MSRV }}
6768
- target: x86_64-unknown-linux-gnu
6869
platform: ubuntu-latest
6970
rust: stable
7071

7172
# 64-bit macOS x86_64
7273
- target: x86_64-apple-darwin
7374
platform: macos-latest
74-
rust: 1.61.0 # MSRV
75+
rust: ${{ MSRV }}
7576
- target: x86_64-apple-darwin
7677
platform: macos-latest
7778
rust: stable
7879

7980
# 64-bit Windows
8081
- target: x86_64-pc-windows-msvc
8182
platform: windows-latest
82-
rust: 1.61.0 # MSRV
83+
rust: ${{ MSRV }}
8384
- target: x86_64-pc-windows-msvc
8485
platform: windows-latest
8586
rust: stable
@@ -102,7 +103,7 @@ jobs:
102103
include:
103104
# PPC32
104105
- target: powerpc-unknown-linux-gnu
105-
rust: 1.61.0 # MSRV
106+
rust: ${{ MSRV }}
106107
- target: powerpc-unknown-linux-gnu
107108
rust: stable
108109
runs-on: ubuntu-latest
@@ -121,7 +122,7 @@ jobs:
121122
matrix:
122123
include:
123124
- target: aarch64-unknown-linux-gnu
124-
rust: 1.61.0
125+
rust: ${{ MSRV }}
125126
- target: aarch64-unknown-linux-gnu
126127
rust: stable
127128
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)