Skip to content

Commit

Permalink
Upload firmware artifact of CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed Jul 22, 2024
1 parent e02f2bf commit 6d90a8e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
targets: riscv32imc-unknown-none-elf
- name: Install espflash
run: cargo install cargo-espflash
working-directory: .
- name: Check out repository
uses: actions/checkout@v4
- name: Cache cargo data
Expand All @@ -61,3 +64,11 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build everything
run: cargo build --workspace --all-targets --release
- name: Generate ESP32 image
run: cargo espflash save-image --chip esp32c3 --release target/touch-n-drink-esp32c3.bin
- name: Upload firmware artifact
uses: actions/upload-artifact@v4
with:
name: touch-n-drink
path: target/touch-n-drink-*.bin
if-no-files-found: error

0 comments on commit 6d90a8e

Please sign in to comment.