Build rust builders #685
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 rust builders | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '37 13 * * *' | |
jobs: | |
build: | |
name: Build containers | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
builder_name: | |
- rust-nostd-avr | |
- rust-nostd-esp | |
- rust-std-esp | |
- rust-training-esp32c3 | |
env: | |
BUILDER_NAME: ${{ matrix.builder_name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build container | |
run: docker build -t "wokwi/builder-${BUILDER_NAME}" ${BUILDER_NAME} | |
- name: Test rust-std-esp container | |
if: matrix.builder_name == 'rust-std-esp' | |
run: | | |
docker run --rm -e WOKWI_MCU=esp32 "wokwi/builder-${BUILDER_NAME}" ./compile.sh | |
docker run --rm -e WOKWI_MCU=esp32-c3 "wokwi/builder-${BUILDER_NAME}" ./compile.sh | |
docker run --rm -e WOKWI_MCU=esp32-c6 "wokwi/builder-${BUILDER_NAME}" ./compile.sh | |
docker run --rm -e WOKWI_MCU=esp32-h2 "wokwi/builder-${BUILDER_NAME}" ./compile.sh | |
docker run --rm -e WOKWI_MCU=esp32-s2 "wokwi/builder-${BUILDER_NAME}" ./compile.sh | |
docker run --rm -e WOKWI_MCU=esp32-s3 "wokwi/builder-${BUILDER_NAME}" ./compile.sh |