Skip to content

Commit

Permalink
CI: Only require MSRV-check to succeed with -Zminimal-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Oct 23, 2023
1 parent f414cab commit d7bf748
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,28 @@ jobs:
run: cargo check -p ndk-sys --all-targets --all-features --target aarch64-linux-android

check_msrv:
strategy:
matrix:
minimal_versions: [true, false]
name: Check overall MSRV (1.66.0)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: dtolnay/rust-toolchain@nightly
if: ${{ matrix.minimal_versions }}

- name: Select minimal crate versions
run: cargo +nightly generate-lockfile -Zminimal-versions
if: ${{ matrix.minimal_versions }}

- uses: dtolnay/[email protected]
with:
target: aarch64-linux-android

- name: cargo check
run: cargo check --workspace --all-targets --all-features --target aarch64-linux-android
continue-on-error: ${{ !matrix.minimal_versions }}

build:
strategy:
Expand Down

0 comments on commit d7bf748

Please sign in to comment.