Skip to content

Commit

Permalink
CI: Remove +nightly override from build-and-test workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
str4d committed Jun 9, 2023
1 parent c711bb7 commit 8de15c5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: sudo apt install libudev-dev
- name: Rustup
run: rustup +nightly target add thumbv7em-none-eabihf
- name: Build
run: cargo +nightly build --release --verbose
run: cargo build --release --verbose
- name: Build examples
run: cargo +nightly build --examples --release --verbose
run: cargo build --examples --release --verbose
- name: Run tests
run: |
cargo +nightly test --release --verbose 2>&1 | tee stderr.txt
cargo test --release --verbose 2>&1 | tee stderr.txt
- name: Check that tests failed for the expected reason
run: |
cat stderr.txt | grep -q "Error: unable to find Flipper Zero"

0 comments on commit 8de15c5

Please sign in to comment.