Skip to content

Merge pull request #168 from card-io-ecg/test-branch #187

Merge pull request #168 from card-io-ecg/test-branch

Merge pull request #168 from card-io-ecg/test-branch #187

Workflow file for this run

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