Skip to content
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

Update to maintained action dtolnay/rust-toolchain instead of actions-rs #5

Merged
merged 1 commit into from
Apr 17, 2024
Merged
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
49 changes: 9 additions & 40 deletions .github/workflows/coproc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,56 +15,25 @@ jobs:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install rustfmt
uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
profile: minimal
override: true
- name: Format Nano
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --check --manifest-path coproc-embassy/nano-ble-rgb/Cargo.toml
run: cargo fmt --all --check --manifest-path coproc-embassy/nano-ble-rgb/Cargo.toml
- name: Format Pico
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --check --manifest-path coproc-embassy/pi-pico-rgb/Cargo.toml
run: cargo fmt --all --check --manifest-path coproc-embassy/pi-pico-rgb/Cargo.toml

build:
name: Build firmwares
needs: [format]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install rust toolchain for thumbv7em-none-eabi
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: thumbv7em-none-eabi
- name: Install rust toolchain for thumbv6m-none-eabi
uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
override: true
target: thumbv6m-none-eabi
targets: "thumbv7em-none-eabi,thumbv6m-none-eabi"
- name: Build Arduino Nano 33 BLE firmware
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --manifest-path coproc-embassy/nano-ble-rgb/Cargo.toml --target thumbv7em-none-eabi
run: cargo build --release --manifest-path coproc-embassy/nano-ble-rgb/Cargo.toml --target thumbv7em-none-eabi
- name: Build Pi Pico firmware
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --manifest-path coproc-embassy/pi-pico-rgb/Cargo.toml --target thumbv6m-none-eabi
run: cargo build --release --manifest-path coproc-embassy/pi-pico-rgb/Cargo.toml --target thumbv6m-none-eabi