Skip to content

Commit fdcb912

Browse files
committed
ci: add msrv compile guard for rust 1.75.0
1 parent 4ec3f50 commit fdcb912

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,25 @@ jobs:
177177
cargo test -p rexos-tools --locked tests::web::fetch::web_fetch_respects_egress_policy_rules
178178
cargo test -p rexos-tools --locked tests::browser::policy::url::
179179
180+
msrv-compile:
181+
name: msrv compile (rust 1.75.0)
182+
runs-on: ubuntu-latest
183+
184+
steps:
185+
- name: Checkout
186+
uses: actions/checkout@v4
187+
188+
- name: Install Rust 1.75.0
189+
uses: dtolnay/rust-toolchain@stable
190+
with:
191+
toolchain: 1.75.0
192+
193+
- name: Rust cache
194+
uses: Swatinem/rust-cache@v2
195+
196+
- name: Check (workspace, locked)
197+
run: cargo check --workspace --locked
198+
180199
docs:
181200
name: docs build
182201
runs-on: ubuntu-latest

scripts/tests/test_ci_workflows.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ def test_ci_includes_windows_security_boundaries_fast_slice(self):
2929
)
3030
self.assertIn("cargo test -p rexos-tools --locked tests::browser::policy::url::", ci)
3131

32+
def test_ci_includes_msrv_compile_guard(self):
33+
ci = (REPO_ROOT / ".github/workflows/ci.yml").read_text(encoding="utf-8")
34+
self.assertIn("msrv-compile", ci)
35+
self.assertIn("msrv compile (rust 1.75.0)", ci)
36+
self.assertIn("Install Rust 1.75.0", ci)
37+
self.assertIn("toolchain: 1.75.0", ci)
38+
self.assertIn("cargo check --workspace --locked", ci)
39+
3240
def test_provider_nightly_workflow_generates_health_artifacts(self):
3341
workflow = (
3442
REPO_ROOT / ".github/workflows/provider-nightly.yml"

0 commit comments

Comments
 (0)