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:
Jonathan Schwender
2023-08-25 16:08:10 +02:00
committed by Emilio Cobos Álvarez
parent 80526e72f9
commit 67fea1a1a2
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -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
+2 -2
View File
@@ -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: |