-
Notifications
You must be signed in to change notification settings - Fork 208
89 lines (71 loc) · 1.85 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: HIL
on:
merge_group:
workflow_dispatch:
# FIXME: Remove before merging?
push:
env:
CARGO_TERM_COLOR: always
jobs:
# TODO: Shall we use a matrix?
# Test RISC-V targets:
# test-esp32c2:
# name:HIL Test | ESP32-C2
# runs-on:
# labels: [self-hosted, esp32c2]
# steps:
# - name: Run tests on-device
# env:
# PROBE_RS_CHIP: esp32c2
# run: |
# # ...
# test-esp32c3:
# name: HIL Test | ESP32-C3
# runs-on:
# labels: [self-hosted, rustboard]
# env:
# PROBE_RS_CHIP: esp32c3
# CARGO_BUILD_TARGET: riscv32imc-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=${{ env.PROBE_RS_CHIP }}
test-esp32c6:
name: HIL Test | ESP32-C6
runs-on:
labels: [self-hosted, esp32c6-usb]
env:
PROBE_RS_CHIP: esp32c6
CARGO_BUILD_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=${{ env.PROBE_RS_CHIP }}
# test-esp32h2:
# name: HIL Test | ESP32-H2
# runs-on:
# labels: [self-hosted, esp32h2]
# steps:
# - name: Run tests on-device
# env:
# PROBE_RS_CHIP: esp32h2
# run: |
# # ...
# Test Xtensa targets:
# TODO: Add jobs for Xtensa once supported by `probe-rs`