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 f8677ad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 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
8 changes: 4 additions & 4 deletions ndk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ api-level-31 = ["api-level-30"]
test = ["ffi/test", "jni", "all"]

[dependencies]
bitflags = "2.0.0"
jni-sys = "0.3.0"
log = "0.4"
bitflags = "2.2"
jni-sys = "0.3"
log = "0.4.6"
num_enum = "0.7"
rwh_04 = { package = "raw-window-handle", version = "0.4", optional = true }
rwh_05 = { package = "raw-window-handle", version = "0.5", optional = true }
Expand All @@ -54,7 +54,7 @@ version = "0.5.0"

[dev-dependencies]
# Only for use in documentation and doc-tests
libc = "0.2"
libc = "0.2.3"

[package.metadata.docs.rs]
features = ["jni", "all"]
Expand Down

0 comments on commit f8677ad

Please sign in to comment.