Skip to content

ci: Use dtolnay/rust-toolchain #56

ci: Use dtolnay/rust-toolchain

ci: Use dtolnay/rust-toolchain #56

Workflow file for this run

name: CI
on:
push:
branches:
- main
- wip
pull_request:
jobs:
build-rust:
name: Build Rust Firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uses: dtolnay/rust-toolchain@stable

Check failure on line 16 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
with:
target: thumbv6m-none-eabi
- run: cd Firmware-Rust && cargo build
build-iec:
name: Build IEC Firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uses: dtolnay/rust-toolchain@stable
with:
target: thumbv6m-none-eabi
- run: sudo apt-get install -y gcc-arm-none-eabi
- run: cd Firmware-IEC && cargo build
rustfmt:
name: Rust Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Rustfmt for Rust Firmware
uses: actions-rust-lang/rustfmt@v1
with:
manifest-path: Firmware-Rust/Cargo.toml
- name: Rustfmt for IEC Firmware
uses: actions-rust-lang/rustfmt@v1
with:
manifest-path: Firmware-IEC/Cargo.toml