refactor: add row2col to matrix config #617
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: Build ESP examples | |
on: | |
push: | |
branches: ["main"] | |
paths: ["examples/**", "rmk/**", "rmk-macro/**"] | |
pull_request: | |
branches: ["main"] | |
paths: ["examples/**", "rmk/**", "rmk-macro/**"] | |
workflow_dispatch: | |
# Cancel any currently running workflows from the same PR, branch, or | |
# tag when a new workflow is triggered. | |
# | |
# https://stackoverflow.com/a/66336834 | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_esp: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
chip: | |
- esp32c3 | |
- esp32c6 | |
- esp32s3 | |
example_type: | |
- use_rust | |
- use_config | |
steps: | |
- uses: cargo-bins/cargo-binstall@main | |
- uses: actions/checkout@v3 | |
- name: Install ldproxy and espup | |
run: cargo binstall ldproxy espup -y | |
- name: Install esp toolchain | |
run: espup install | |
- name: Build | |
working-directory: ./examples/${{ matrix.example_type }}/${{ matrix.chip }}_ble | |
run: | | |
cargo +esp build --release | |
cargo clean |