-
Notifications
You must be signed in to change notification settings - Fork 208
50 lines (43 loc) · 1.19 KB
/
hil.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: HIL
on:
merge_group:
workflow_dispatch:
# FIXME: Remove before merging?
push:
env:
CARGO_TERM_COLOR: always
jobs:
riscv-hil:
name: HIL Test | ${{ matrix.target.soc }}
runs-on:
labels: [self-hosted, "${{ matrix.target.runner }}"]
env:
PROBE_RS_CHIP: ${{ matrix.target.soc }}
CARGO_BUILD_TARGET: ${{ matrix.target.rust-target }}
strategy:
fail-fast: false
matrix:
target:
# - soc: esp32c3
# runner: rustboard
# rust-target: riscv32imc-unknown-none-elf
- soc: esp32c6
runner: esp32c6-usb
rust-target: riscv32imac-unknown-none-elf
- soc: esp32h2
runner: esp32h2-usb
rust-target: riscv32imac-unknown-none-elf
steps:
- uses: actions/checkout@v4
with:
ref: 'feat/hil-testing'
- uses: dtolnay/rust-toolchain@v1
with:
target: ${{ env.CARGO_BUILD_TARGET }}
toolchain: nightly
- name: Run tests
run: |
cd hil-test/
cargo test --release --features=${{ matrix.target.soc }}
# Test Xtensa targets:
# TODO: Add jobs for Xtensa once supported by `probe-rs`