Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
rustup component add clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-features --all-targets -- -D warnings

test:
name: Test
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -133,10 +133,29 @@ jobs:
- uses: actions/checkout@v4
- run: |
rustup update nightly --no-self-update
rustup default nightly
rustup default nightly
- uses: Swatinem/rust-cache@v2
- run: cargo doc

msrv:
name: MSRV check
runs-on: ubuntu-24.04
timeout-minutes: 10
env:
RUSTFLAGS: # No need to check warnings on old MSRV, unset `-Dwarnings`
steps:
- uses: actions/checkout@master
- name: Install Rust
run: |
msrv="$(
cargo metadata --format-version=1 |
jq -r '.packages[] | select(.name == "cmake") | .rust_version'
)"
echo "MSRV: $msrv"
rustup update "$msrv" --no-self-update && rustup default "$msrv"
- uses: Swatinem/rust-cache@v2
- run: cargo check

success:
needs:
- clippy
Expand All @@ -145,6 +164,7 @@ jobs:
- ios_cross_compile_test
- rustfmt
- doc
- msrv
runs-on: ubuntu-latest
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A build dependency for running `cmake` to build a native library
"""
categories = ["development-tools::build-utils"]
edition = "2021"
rust-version = "1.65"

[dependencies]
cc = "1.1.0"
Loading