-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 916 Bytes
/
ci.yaml
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
37
name: Traffic Light CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rust-lang/[email protected]
with:
toolchain: nightly
target: riscv32imc-unknown-none-elf
components: rust-src
- name: Build
run: cargo +nightly build --target riscv32imc-unknown-none-elf
- name: Upload Binary Artifact
uses: actions/upload-artifact@v2
with:
name: esp32_traffic_lights_rs
path: target/riscv32imc-unknown-none-elf/debug/esp32_traffic_lights_rs
- name: Test Traffic Light Scenario on Wokwi
uses: wokwi/wokwi-ci-action@v1
with:
token: ${{ secrets.WOKWI_CLI_TOKEN }}
path: /
scenario: 'traffic_light.test.yaml'