Skip to content

Commit

Permalink
Only build vga example for esp32 and do not test (fails in sim)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reavershark committed Apr 18, 2024
1 parent 51f1496 commit b7c2b79
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/wokwi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,19 @@ jobs:
strategy:
fail-fast: false
matrix:
example: [hello_world, vga]
target: [esp32, esp32s2, esp32s3]
include:
- example: hello_world
target: esp32
test: true
- example: hello_world
target: esp32s2
test: true
- example: hello_world
target: esp32s3
test: true
- example: vga
target: esp32
test: false
runs-on: ubuntu-latest
container:
image: jmeeuws/esp-dlang
Expand All @@ -25,7 +36,8 @@ jobs:
cd ./examples/${{ matrix.example }}/
idf.py set-target ${{ matrix.target }}
idf.py build
- name: Setup CI files
- name: Setup test files
if: ${{ matrix.test }}
run: |
cat > wokwi.toml <<EOF
[wokwi]
Expand All @@ -34,7 +46,9 @@ jobs:
firmware = "./examples/${{ matrix.example }}/build/${{ matrix.example }}.bin"
EOF
cp ./.github/workflows/wokwi/diagram-${{ matrix.target }}.json ./diagram.json
- uses: wokwi/wokwi-ci-action@v1
- name: Test using wokwi
if: ${{ matrix.test }}
uses: wokwi/wokwi-ci-action@v1
with:
token: ${{ secrets.WOKWI_CLI_TOKEN }}
timeout: 5000
Expand Down
2 changes: 0 additions & 2 deletions examples/vga/dbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ DFLAGS+=" --preview=fixImmutableConv"
DFLAGS+=" --gc"
# DFLAGS+=" --O3 --boundscheck=off"

[[ -z "${CI}" ]] || DFLAGS+=" --d-version=CI"

# Append default flags based on target
DFLAGS+=" $(cd "$(dirname "${BASH_SOURCE[0]}")" && dflags.py)"
export DFLAGS
Expand Down
6 changes: 0 additions & 6 deletions examples/vga/main/source/app/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,5 @@ extern(C) void d_main()
while (true)
{
(() @trusted => vTaskSuspend(null))();

version (CI)
{
printf("@CI, all is good!\n");
break;
}
}
}

0 comments on commit b7c2b79

Please sign in to comment.