Skip to content

Commit

Permalink
add msrv to env to prevent so much duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
brxken128 committed Oct 22, 2023
1 parent 3c7bebd commit d210bdd
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/zeroize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "zeroize/**"
- "Cargo.*"
push:
branches: master
branches: [master]

permissions:
contents: read
Expand All @@ -19,14 +19,15 @@ defaults:
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
MSRV: 1.61.0

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.61.0 # MSRV
- ${{ MSRV }}
- stable
target:
- armv7a-none-eabi
Expand All @@ -53,7 +54,7 @@ jobs:
# 32-bit Linux
- target: i686-unknown-linux-gnu
platform: ubuntu-latest
rust: 1.61.0 # MSRV
rust: ${{ MSRV }}
deps: sudo apt update && sudo apt install gcc-multilib
- target: i686-unknown-linux-gnu
platform: ubuntu-latest
Expand All @@ -63,23 +64,23 @@ jobs:
# 64-bit Linux
- target: x86_64-unknown-linux-gnu
platform: ubuntu-latest
rust: 1.61.0 # MSRV
rust: ${{ MSRV }}
- target: x86_64-unknown-linux-gnu
platform: ubuntu-latest
rust: stable

# 64-bit macOS x86_64
- target: x86_64-apple-darwin
platform: macos-latest
rust: 1.61.0 # MSRV
rust: ${{ MSRV }}
- target: x86_64-apple-darwin
platform: macos-latest
rust: stable

# 64-bit Windows
- target: x86_64-pc-windows-msvc
platform: windows-latest
rust: 1.61.0 # MSRV
rust: ${{ MSRV }}
- target: x86_64-pc-windows-msvc
platform: windows-latest
rust: stable
Expand All @@ -102,7 +103,7 @@ jobs:
include:
# PPC32
- target: powerpc-unknown-linux-gnu
rust: 1.61.0 # MSRV
rust: ${{ MSRV }}
- target: powerpc-unknown-linux-gnu
rust: stable
runs-on: ubuntu-latest
Expand All @@ -121,7 +122,7 @@ jobs:
matrix:
include:
- target: aarch64-unknown-linux-gnu
rust: 1.61.0
rust: ${{ MSRV }}
- target: aarch64-unknown-linux-gnu
rust: stable
runs-on: ubuntu-latest
Expand Down

0 comments on commit d210bdd

Please sign in to comment.