Fix CI
Commit 667de09279
broke CI by adding rust-toolchain.toml, which changed
the default rust version to nightly.
Explicitly specify the rust version in CI to use the correct
toolchain.
This commit is contained in:
committed by
Emilio Cobos Álvarez
parent
80526e72f9
commit
67fea1a1a2
@@ -23,11 +23,11 @@ jobs:
|
||||
|
||||
- name: Run rustfmt
|
||||
run: |
|
||||
cargo fmt --check
|
||||
cargo +stable fmt --check
|
||||
|
||||
- name: Run clippy
|
||||
run: |
|
||||
cargo clippy --workspace -- -D warnings
|
||||
cargo +stable clippy --workspace -- -D warnings
|
||||
|
||||
- name: Install minimum supported Rust version
|
||||
id: msrv
|
||||
@@ -59,18 +59,18 @@ jobs:
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cargo build --verbose
|
||||
cargo +stable build --verbose
|
||||
|
||||
- name: Build no-default-features
|
||||
run: |
|
||||
cargo build --verbose --no-default-features
|
||||
cargo +stable build --verbose --no-default-features
|
||||
|
||||
- name: Test package
|
||||
env:
|
||||
CBINDGEN_TEST_VERIFY: 1
|
||||
run: |
|
||||
cargo package --verbose
|
||||
(cd target/package/cbindgen-$(cargo run -- --version | cut -d ' ' -f 2) && cargo test --verbose)
|
||||
cargo +stable package --verbose
|
||||
(cd target/package/cbindgen-$(cargo +stable run -- --version | cut -d ' ' -f 2) && cargo +stable test --verbose)
|
||||
|
||||
- name: Install nightly Rust
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
|
||||
@@ -24,12 +24,12 @@ jobs:
|
||||
|
||||
- name: semver
|
||||
run: |
|
||||
cargo install cargo-semver-checks --locked
|
||||
cargo +stable install cargo-semver-checks --locked
|
||||
cargo semver-checks check-release
|
||||
|
||||
- name: Build cbindgen
|
||||
run: |
|
||||
cargo build --release
|
||||
cargo +stable build --release
|
||||
|
||||
- name: Strip cbindgen
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user