⬆️ Update version number in Cargo.toml from 0.4.4 to 0.5.0 in prepara… #145
Workflow file for this run
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: CI | |
on: | |
push: | |
paths-ignore: | |
- "**/README.md" | |
- "**/README.*.md" | |
- "**/*.example" | |
- "/.vscode/**" | |
pull_request: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
rust-checks: | |
name: Rust Checks | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
models: | |
[ | |
"generic", | |
"m5atoms3-lite", | |
"m5atoms3", | |
"m5atoms3r", | |
"xiao-esp32s3", | |
"devkitc-1_0", | |
"devkitc-1_1", | |
] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: esp-rs/[email protected] | |
with: | |
default: true | |
buildtargets: esp32 | |
ldproxy: false | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libudev-dev libusb-dev wget unzip | |
wget 'https://github.com/esp-rs/espflash/releases/download/v3.3.0/cargo-espflash-x86_64-unknown-linux-musl.zip' | |
unzip cargo-espflash-x86_64-unknown-linux-musl.zip | |
mv cargo-espflash ~/.cargo/bin/ | |
- name: Enable caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check --color always | |
- name: Run clippy | |
run: cargo clippy --release --features=${{ matrix.models }} --workspace -- -D warnings | |
- name: Build binary | |
run: cargo espflash save-image --chip esp32s3 --release --features ${{ matrix.models }} --partition-table partitions_single_app.csv esparrier-${{ matrix.models }}.bin | |
- name: Upload binaries | |
uses: actions/upload-artifact@v4 | |
with: | |
name: image-${{ matrix.models }} | |
path: ./*.bin |