Skip to content

Smoke tester build [WIP] #5

Smoke tester build [WIP]

Smoke tester build [WIP] #5

Workflow file for this run

on: push

Check failure on line 1 in .github/workflows/smoketest.yml

View workflow run for this annotation

GitHub Actions / Smoke Test

Invalid workflow file

The workflow is not valid. .github/workflows/smoketest.yml: Anchors are not currently supported. Remove the anchor 'build-matrix'
# 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