Publish #8
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: Publish | |
on: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
rust-checks: | |
name: Rust Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: esp-rs/[email protected] | |
with: | |
default: true | |
buildtargets: esp32s3 | |
ldproxy: true | |
- name: Install espflash | |
run: cargo install cargo-espflash | |
- name: Enable caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo build --release | |
- name: Trim binary | |
run: cargo espflash save-image --chip esp32s3 -s 4mb target/xtensa-esp32s3-espidf/release/esp-pulser |