-
Notifications
You must be signed in to change notification settings - Fork 208
106 lines (83 loc) · 2.27 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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
# - uses: Swatinem/rust-cache@v2
# - 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
- uses: Swatinem/rust-cache@v2
- 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-usb]
env:
PROBE_RS_CHIP: esp32h2
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
# - uses: Swatinem/rust-cache@v2
- name: Run tests
run: |
cd hil-test/
cargo test --release --features=${{ env.PROBE_RS_CHIP }}
# Test Xtensa targets:
# TODO: Add jobs for Xtensa once supported by `probe-rs`