Check minimum versions in CI (#5437)
* check minimum versions * fix min lockfile * fix clippy * Delete .codex * fix toml min version * add cache to min-deps --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
6e5b370481
commit
14f3e71722
24 files changed
+87
-60
No files matched your search
@@ -580,6 +580,34 @@ jobs:
|
||||
run: |
|
||||
${{ env.RUST_CARGO_COMMAND }} ${{ matrix.platform.command }} ${{ matrix.platform.args }} --target ${{ matrix.platform.target }}
|
||||
|
||||
# Verify that declared minimum dependency versions actually compile.
|
||||
# Catches issues like https://github.com/DioxusLabs/dioxus/issues/5433 where
|
||||
# the code uses APIs not available in the declared minimum version.
|
||||
min-deps:
|
||||
needs: check-paths
|
||||
if: github.event.pull_request.draft == false && needs.check-paths.outputs.rust == 'true'
|
||||
name: "Check | Minimum dependency versions"
|
||||
runs-on: warp-ubuntu-latest-x64-4x
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: libwebkit2gtk-4.1-dev libgtk-3-dev libasound2-dev libudev-dev libayatana-appindicator3-dev libxdo-dev libglib2.0-dev
|
||||
version: 1.0
|
||||
- uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
toolchain: ${{ env.rust_nightly }}
|
||||
- uses: dtolnay/rust-toolchain@1.88.0
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
cache-all-crates: "true"
|
||||
cache-workspace-crates: "true"
|
||||
cache-provider: "warpbuild"
|
||||
- name: Generate minimal-version lockfile
|
||||
run: cargo +${{ env.rust_nightly }} update -Zdirect-minimal-versions
|
||||
- name: Check workspace with minimum versions
|
||||
run: cargo +1.88.0 check --workspace
|
||||
|
||||
nix:
|
||||
needs: check-paths
|
||||
if: github.event.pull_request.draft == false && needs.check-paths.outputs.rust == 'true'
|
||||
|
||||
Reference in new issue
Block a user