A minimal stack-dump decoder (RV) #1175
Workflow file for this run
This file contains hidden or 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: HIL | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
merge_group: | |
workflow_dispatch: | |
inputs: | |
repository: | |
description: "Owner and repository to test" | |
required: true | |
default: "esp-rs/espflash" | |
branch: | |
description: "Branch, tag or SHA to checkout." | |
required: true | |
default: "main" | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_LOG: debug | |
# 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 }} | |
jobs: | |
build-espflash: | |
name: Build espflash | |
runs-on: ubuntu-22.04 | |
container: | |
image: ubuntu:20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.inputs.repository || github.repository }} | |
ref: ${{ github.event.inputs.branch || github.ref }} | |
- name: Install dependencies | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: apt-get update && apt-get -y install curl musl-tools pkg-config | |
- name: Install toolchain | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
- name: Build espflash | |
run: $HOME/.cargo/bin/cargo build --release | |
working-directory: espflash | |
- name: Build xtask | |
run: $HOME/.cargo/bin/cargo build --release --locked | |
working-directory: xtask | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: espflash | |
path: target/release/espflash | |
if-no-files-found: error | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: xtask | |
path: target/release/xtask | |
if-no-files-found: error | |
run-target: | |
if: github.repository_owner == 'esp-rs' | |
name: ${{ matrix.board.mcu }}${{ matrix.board.freq }} | |
needs: build-espflash | |
runs-on: | |
[ | |
self-hosted, | |
linux, | |
x64, | |
"${{ matrix.board.mcu }}${{ matrix.board.freq }}", | |
] | |
env: | |
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board.mcu }} | |
strategy: | |
fail-fast: false | |
matrix: | |
board: | |
- mcu: esp32 | |
- mcu: esp32c2 | |
freq: -26mhz | |
flag: -x 26mhz | |
- mcu: esp32c3 | |
- mcu: esp32c6 | |
- mcu: esp32h2 | |
- mcu: esp32s2 | |
- mcu: esp32s3 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: espflash | |
path: espflash_app | |
- uses: actions/download-artifact@v4 | |
with: | |
name: xtask | |
path: xtask_app | |
- name: Set up espflash binary | |
run: | | |
chmod +x espflash_app/espflash | |
echo "$PWD/espflash_app" >> "$GITHUB_PATH" | |
chmod +x xtask_app/xtask | |
echo "$PWD/xtask_app" >> "$GITHUB_PATH" | |
- name: Run all tests | |
run: xtask run-tests --chip ${{ matrix.board.mcu }} -t 60 --no-build |