add project build automation
This commit is contained in:
parent
39411efb87
commit
399afa8828
7 changed files with 229 additions and 0 deletions
46
.github/workflows/test.yml
vendored
Normal file
46
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
name: Test ESP32 Application
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
prefix:
|
||||
description: 'Prefix for binary name'
|
||||
required: true
|
||||
default: 'esp32-c3-lua-test'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
board: [esp32c3-devkit]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download artifact
|
||||
id: download-artifact
|
||||
uses: dawidd6/action-download-artifact@v6
|
||||
with:
|
||||
workflow: build.yml
|
||||
name: ${{ github.event.inputs.prefix }}-${{ matrix.board }}.bin
|
||||
path: build.${{ matrix.board }}
|
||||
|
||||
- name: Setup Wokwi CLI
|
||||
uses: wokwi/wokwi-ci-action@v1
|
||||
with:
|
||||
token: ${{ secrets.WOKWI_CLI_TOKEN }}
|
||||
path: boards/${{ matrix.board }}
|
||||
elf: build.${{ matrix.board }}/${{ github.event.inputs.prefix }}-${{ matrix.board }}.bin
|
||||
timeout: 30000
|
||||
expect_text: 'Closing Lua'
|
||||
fail_text: 'Error'
|
||||
serial_log_file: 'wokwi-logs-${{ matrix.board }}.txt'
|
||||
|
||||
- name: Upload Wokwi Logs
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wokwi-logs-${{ matrix.board }}
|
||||
path: wokwi-logs-${{ matrix.board }}.txt
|
||||
Loading…
Add table
Add a link
Reference in a new issue