-
Notifications
You must be signed in to change notification settings - Fork 11
72 lines (61 loc) · 2.53 KB
/
smoketest.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
on: push
# Cancel any currently running workflows from the same PR, branch, or
# tag when a new workflow is triggered.
#
# https://stackoverflow.com/a/66336834
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
name: Smoke Test
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix: &build-matrix
targets: [
#{ soc: "esp32c2", "target": "riscv32imac-unknown-none-elf", "project": "esp32" },
#{ soc: "esp32c3", "target": "riscv32imac-unknown-none-elf", "project": "esp32" },
#{ soc: "esp32c6", "target": "riscv32imac-unknown-none-elf", "project": "esp32" },
#{ soc: "esp32s3", "target": "xtensa-esp32s3-none-elf", "project": "esp32" },
{ soc: "stm32c011f6", "target": "thumbv6m-none-eabi", "project": "stm32" },
{ soc: "stm32f051r8", "target": "thumbv6m-none-eabi", "project": "stm32" },
{ soc: "stm32f429zi", "target": "thumbv7em-none-eabi", "project": "stm32" },
{ soc: "stm32g031k8", "target": "thumbv6m-none-eabi", "project": "stm32" },
{ soc: "stm32g431kb", "target": "thumbv7em-none-eabi", "project": "stm32" },
{ soc: "stm32l432kc", "target": "thumbv7me-none-eabi", "project": "stm32" },
{ soc: "stm32u545re", "target": "thumbv8m.main-none-eabihf", "project": "stm32" },
#{ soc: "nrf51422", "target": "thumbv7em-none-eabihf", "project": "nrf" },
#{ soc: "nrf52832", "target": "thumbv7em-none-eabihf", "project": "nrf" }
]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build example
run: |
set -x
cd .github/test-projects/${{matrix.targets.project}}
cp $(./build.sh ${{matrix.targets.soc}} ${{matrix.targets.target}}) output/${{matrix.targets.soc}}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{matrix.targets.soc}}
path: .github/test-projects/${{matrix.targets.project}}/output/${{matrix.targets.soc}}
# run:
# runs-on: [ "self-hosted", "linux", "ARM64", "smoke-tester-2" ]
# needs: build
#
# strategy:
# matrix: *build-matrix
#
#
# steps:
# #- uses: actions/download-artifact@v4
# # with:
# # name: probe-rs
#
# - name: Checkout sources
# uses: actions/checkout@v4
#
# - name: Run embedded-tests
# run: |
# python ${ORCHESTRATOR} --target ${{matrix.targets.soc}} --step-executor ./.github/test-projects/step-executor.sh