Skip to content

Commit b925a4f

Browse files
caspermeijntottoto
andauthored
chore: Add ci to check MSRV (#1057)
Instead of rebuilding everything with Rust 1.70 (MSRV), use `cargo hack` to only build published crates at their specified `rust-version`. Co-authored-by: tottoto <[email protected]>
1 parent b2ce9ed commit b925a4f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ jobs:
8585
matrix:
8686
toolchain:
8787
- stable
88-
- "1.70"
8988
os:
9089
- ubuntu-latest
9190
- macos-latest
@@ -115,6 +114,21 @@ jobs:
115114
- name: test doc no-default-features
116115
run: cargo test -p prost-build -p prost-derive -p prost-types --doc --no-default-features
117116

117+
msrv:
118+
runs-on: ubuntu-latest
119+
steps:
120+
- uses: actions/checkout@v4
121+
- name: install protoc
122+
uses: taiki-e/install-action@v2
123+
with:
124+
tool: protoc@${{ env.PROTOC_VERSION }}
125+
- uses: taiki-e/install-action@cargo-hack
126+
- uses: Swatinem/rust-cache@v2
127+
- name: check with no-default-features
128+
run: cargo hack --rust-version --no-private --no-dev-deps check --no-default-features
129+
- name: check with all-features
130+
run: cargo hack --rust-version --no-private --no-dev-deps check --all-features
131+
118132
minimal-versions:
119133
runs-on: ubuntu-latest
120134
steps:

0 commit comments

Comments
 (0)