From 3fbbd06ed45d1d079607ac110365bfe1bb9b036e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Wed, 29 May 2024 11:18:43 +0200 Subject: [PATCH] Check with minimal-versions dependencies --- .github/workflows/build-and-test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index b14dde2..e225b60 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -46,3 +46,11 @@ jobs: # Since the tests modify global state (the system firewall) they cannot run in parallel. # The integration tests must run as root since they write firewall state (/dev/pf) run: sudo cargo test -- --test-threads=1 + + # Make sure the library builds with all dependencies downgraded to their + # oldest versions allowed by the semver spec. This ensures we have not + # under-specified any dependency + - name: Compile with minimal versions + run: | + cargo +nightly update -Z minimal-versions + cargo build --all-targets \ No newline at end of file