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
|
- name: Run rustfmt
|
||||||
run: |
|
run: |
|
||||||
cargo fmt --check
|
cargo +stable fmt --check
|
||||||
|
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
run: |
|
run: |
|
||||||
cargo clippy --workspace -- -D warnings
|
cargo +stable clippy --workspace -- -D warnings
|
||||||
|
|
||||||
- name: Install minimum supported Rust version
|
- name: Install minimum supported Rust version
|
||||||
id: msrv
|
id: msrv
|
||||||
@@ -59,18 +59,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cargo build --verbose
|
cargo +stable build --verbose
|
||||||
|
|
||||||
- name: Build no-default-features
|
- name: Build no-default-features
|
||||||
run: |
|
run: |
|
||||||
cargo build --verbose --no-default-features
|
cargo +stable build --verbose --no-default-features
|
||||||
|
|
||||||
- name: Test package
|
- name: Test package
|
||||||
env:
|
env:
|
||||||
CBINDGEN_TEST_VERIFY: 1
|
CBINDGEN_TEST_VERIFY: 1
|
||||||
run: |
|
run: |
|
||||||
cargo package --verbose
|
cargo +stable package --verbose
|
||||||
(cd target/package/cbindgen-$(cargo run -- --version | cut -d ' ' -f 2) && cargo test --verbose)
|
(cd target/package/cbindgen-$(cargo +stable run -- --version | cut -d ' ' -f 2) && cargo +stable test --verbose)
|
||||||
|
|
||||||
- name: Install nightly Rust
|
- name: Install nightly Rust
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
|
|||||||
@@ -24,12 +24,12 @@ jobs:
|
|||||||
|
|
||||||
- name: semver
|
- name: semver
|
||||||
run: |
|
run: |
|
||||||
cargo install cargo-semver-checks --locked
|
cargo +stable install cargo-semver-checks --locked
|
||||||
cargo semver-checks check-release
|
cargo semver-checks check-release
|
||||||
|
|
||||||
- name: Build cbindgen
|
- name: Build cbindgen
|
||||||
run: |
|
run: |
|
||||||
cargo build --release
|
cargo +stable build --release
|
||||||
|
|
||||||
- name: Strip cbindgen
|
- name: Strip cbindgen
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user