Skip to content

Commit 7108624

Browse files
authored
Add 'msrv' job to CI build (#204)
Signed-off-by: Max Lambrecht <[email protected]>
1 parent 37309bb commit 7108624

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,35 @@ jobs:
9090
- name: Clean up SPIRE
9191
if: ${{ always() }}
9292
run: .github/workflows/scripts/cleanup-spire.sh
93+
94+
msrv:
95+
name: MSRV (Rust 1.83)
96+
runs-on: ubuntu-latest
97+
steps:
98+
- name: Check out code
99+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
100+
with:
101+
submodules: recursive
102+
103+
- name: Install Rust 1.83.0
104+
uses: dtolnay/rust-toolchain@stable
105+
with:
106+
toolchain: 1.83.0
107+
108+
- name: Cache Project
109+
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
110+
with:
111+
shared-key: ${{ runner.os }}-cargo-msrv-1.83.0
112+
113+
- name: Build (MSRV)
114+
run: |
115+
rm -f Cargo.lock
116+
cargo build --manifest-path spiffe/Cargo.toml --all-targets
117+
cargo build --manifest-path spire-api/Cargo.toml --all-targets
118+
cargo build --manifest-path spiffe-rustls/Cargo.toml --all-targets
119+
120+
- name: Test (MSRV)
121+
run: |
122+
cargo test --manifest-path spiffe/Cargo.toml
123+
cargo test --manifest-path spire-api/Cargo.toml
124+
cargo test --manifest-path spiffe-rustls/Cargo.toml

0 commit comments

Comments
 (0)