Merge pull request #163 from card-io-ecg/update #185
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build firmware | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '.github/**' | |
- '.vscode/**' | |
env: | |
CARGO_TERM_COLOR: always | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }} | |
jobs: | |
build-fw: | |
strategy: | |
matrix: | |
version: ["v4", "v6c6", "v6s3"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: esp-rs/[email protected] | |
with: | |
default: true | |
buildtargets: esp32s3 | |
version: "1.80.0" | |
ldproxy: false | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly-2024-06-01 | |
components: clippy, rustfmt, rust-src | |
- uses: Swatinem/rust-cache@v2 | |
- uses: cargo-bins/cargo-binstall@main | |
- name: setup espflash | |
run: cargo binstall --no-confirm --force cargo-espflash | |
- name: format check | |
run: | |
cargo fmt --check | |
- name: build | |
run: | | |
cargo xbuild ${{ matrix.version }} | |
- name: archive | |
uses: actions/upload-artifact@v3 | |
with: | |
name: card_io_fw_${{ matrix.version }}.bin | |
path: target/card_io_fw.bin |