forked from Reavershark/esp-dlang
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 \
cmake ninja-build
bash /opt/esp-idf/install.sh && \
echo "\necho Sourcing /opt/esp-idf/export.sh\nsource /opt/esp-idf/export.sh >/dev/null" >> /etc/bash.bashrc
- name: build D basic-example
run: |
cd examples/idf-project-with-dpp
bash build.sh ${{ matrix.target }}
- name: Copy wokwi-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'