Skip to content

Commit 596128e

Browse files
committed
Add smoketester [WIP]
1 parent ecec5b5 commit 596128e

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
echo start
3+
echo "$TARGET"
4+
echo "$TARGET_CONFIG"
5+
echo end
6+
7+
exit 1

.github/workflows/smoketest.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
on: push
2+
3+
# Cancel any currently running workflows from the same PR, branch, or
4+
# tag when a new workflow is triggered.
5+
#
6+
# https://stackoverflow.com/a/66336834
7+
concurrency:
8+
cancel-in-progress: true
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
11+
name: Smoke Test
12+
13+
jobs:
14+
embedded-test:
15+
runs-on: [ "self-hosted", "linux", "ARM64", "smoke-tester-2" ]
16+
17+
strategy:
18+
matrix:
19+
targets: [
20+
{ soc: "esp32c2", "target": "riscv32imac-unknown-none-elf" },
21+
{ soc: "esp32c3", "target": "riscv32imac-unknown-none-elf" },
22+
{ soc: "esp32c6", "target": "riscv32imac-unknown-none-elf" },
23+
{ soc: "esp32s3", "target": "xtensa-esp32s3-none-elf" },
24+
{ soc: "stm32c011f6", "target": "thumbv6m-none-eabi" },
25+
{ soc: "stm32f051r8", "target": "thumbv6m-none-eabi" },
26+
{ soc: "stm32f429zi", "target": "thumbv7em-none-eabihf" },
27+
{ soc: "stm32g031k8", "target": "thumbv7em-none-eabihf" },
28+
{ soc: "stm32g431kb", "target": "thumbv7em-none-eabihf" },
29+
{ soc: "stm32l432kc", "target": "thumbv7em-none-eabihf" },
30+
{ soc: "stm32u545re", "target": "thumbv7em-none-eabihf" },
31+
{ soc: "nrf51422", "target": "thumbv7em-none-eabihf" },
32+
{ soc: "nrf52832", "target": "thumbv7em-none-eabihf" }
33+
]
34+
35+
#needs: build
36+
37+
steps:
38+
#- uses: actions/download-artifact@v4
39+
# with:
40+
# name: probe-rs
41+
42+
- name: Checkout sources
43+
uses: actions/checkout@v4
44+
45+
- name: Run embedded-tests
46+
run: |
47+
python ${ORCHESTRATOR} --target ${{matrix.targets.soc}} --step-executor ./.github/test-projects/step-executor.sh

0 commit comments

Comments
 (0)