-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (32 loc) · 1.19 KB
/
build-rust.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
36
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