-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.04 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: esp-rs/[email protected]
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