Skip to content

Commit 8de15c5

Browse files
committed
CI: Remove +nightly override from build-and-test workflow
We instead can rely on `crates/rust-toolchain.toml` to pin the nightly version we are using. This has two benefits: - We are not exposed to random nightly breakage in CI. - Once we move to stable Rust (#58), this will ensure we build and test against MSRV.
1 parent c711bb7 commit 8de15c5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: .github/workflows/_build_and_test.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v3
1919
- run: sudo apt install libudev-dev
20-
- name: Rustup
21-
run: rustup +nightly target add thumbv7em-none-eabihf
2220
- name: Build
23-
run: cargo +nightly build --release --verbose
21+
run: cargo build --release --verbose
2422
- name: Build examples
25-
run: cargo +nightly build --examples --release --verbose
23+
run: cargo build --examples --release --verbose
2624
- name: Run tests
2725
run: |
28-
cargo +nightly test --release --verbose 2>&1 | tee stderr.txt
26+
cargo test --release --verbose 2>&1 | tee stderr.txt
2927
- name: Check that tests failed for the expected reason
3028
run: |
3129
cat stderr.txt | grep -q "Error: unable to find Flipper Zero"

0 commit comments

Comments
 (0)