Get esp32 examples building again #1633
Workflow file for this run
This file contains 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: Build | |
on: | |
push: | |
branches: [main, zig-master] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
strategy: | |
matrix: | |
os: [ | |
ubuntu-latest, | |
windows-latest, | |
macos-latest, | |
] | |
port_dir: [ | |
# espressif/esp, | |
gigadevice/gd32, | |
# microchip/atsam,, | |
# microchip/avr, | |
# nordic/nrf5x, | |
# nxp/lpc, | |
raspberrypi/rp2xxx, | |
stmicro/stm32, | |
# wch/ch32v, | |
] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Zig | |
uses: mlugg/setup-zig@v1 | |
with: | |
version: 0.13.0 | |
- name: Build | |
run: zig build -Doptimize=ReleaseSmall | |
- name: Unit Test Ports | |
run: zig build test | |
working-directory: port/${{ matrix.port_dir }} | |
- name: Unit Test Regz | |
run: zig build test | |
working-directory: tools/regz | |
- name: Unit Test UF2 | |
run: zig build test | |
working-directory: tools/uf2 | |
- name: Build Website | |
run: zig build | |
working-directory: website | |
- name: Dry run packaging | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
MICROZIG_VERSION=$(zig build package -- get-version) | |
echo microzig version: $MICROZIG_VERSION | |
zig build package -- http://localhost:8000 | |
python3 -m http.server 8000 --directory boxzer-out & | |
sleep 1 | |
cd tools/package-test | |
zig fetch --save=microzig http://localhost:8000/${MICROZIG_VERSION}/microzig.tar.gz | |
zig build -Doptimize=ReleaseSmall | |
# zig build run-port-tests | |
# clean up server | |
jobs -p | xargs kill |