Skip to content

rust-toolchain: Pin to 1.69.0 #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 13 additions & 30 deletions .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,13 @@ env:
jobs:
building:
name: Building
continue-on-error: ${{ matrix.experimental || false }}
strategy:
matrix:
# All generated code should be running on stable now
# TODO: Also test nightly
#rust: [nightly, stable]
rust: [stable]
#include:
# # Nightly is only for reference and allowed to fail
# - rust: nightly
# experimental: true
#os:
# # Check compilation works on common OSes
# # (i.e. no path issues)
# # - macOS-latest
# - ubuntu-latest
# - windows-latest
runs-on: [ubuntu-latest] #${{ matrix.os }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: thumbv6m-none-eabi

- name: Setup Rust toolchain
run: rustup show

- run: cargo install flip-link
- run: cargo build -p ledmatrix
- run: cargo build -p b1display
Expand Down Expand Up @@ -65,10 +48,10 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
target: thumbv6m-none-eabi

- name: Setup Rust toolchain
run: rustup show

- run: |
cargo clippy -p b1display -- --deny=warnings
cargo clippy -p c1minimal -- --deny=warnings
Expand All @@ -81,8 +64,8 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
target: thumbv6m-none-eabi

- name: Setup Rust toolchain
run: rustup show

- run: cargo fmt --all -- --check
173 changes: 0 additions & 173 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "1.69.0"
targets = ["thumbv6m-none-eabi"]
components = ["clippy", "rustfmt"]