Skip to content

wokwi config

wokwi config #6

Workflow file for this run

name: Wokwi-CI Build
on: [push]
jobs:
build:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest]
target: [esp32, esp32s2, esp32s3]
runs-on: ${{ matrix.runs-on }}
container:
image: jmeeuws/esp-dlang
steps:
- uses: actions/checkout@v4
- name: update image
run: |
apt-get update && \
apt-get -y install \
docker cmake
- name: build D basic-example
run: |
cd examples/idf-project/main
dub build --compiler=/opt/ldc-xtensa/bin/ldc2 --build=release
- uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v4.4.7
target: ${{ matrix.target }}
path: 'examples/idf-project'
- name: Copy diagram ${{ matrix.target }}
run: |
cp .github/workflows/wokwi/diagram-${{ matrix.target }}.json diagram.json
- uses: wokwi/wokwi-ci-action@v1
with:
token: ${{ secrets.WOKWI_CLI_TOKEN }}
timeout: 5000
expect_text: 'Hello, dlang says: i = 0'