Skip to content

Merge pull request #161 from card-io-ecg/wifi_update #179

Merge pull request #161 from card-io-ecg/wifi_update

Merge pull request #161 from card-io-ecg/wifi_update #179

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/xtensa-toolchain@v1.5
with:
default: true
buildtargets: esp32s3
ldproxy: false
- 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