diff --git a/.github/test-projects/step-executor.sh b/.github/test-projects/step-executor.sh index e333ef3..70cb93f 100755 --- a/.github/test-projects/step-executor.sh +++ b/.github/test-projects/step-executor.sh @@ -1,7 +1,7 @@ #!/bin/sh -echo start -echo "$TARGET" -echo "$TARGET_CONFIG" -echo end +set -e +set -x + +/home/probe-rs-runner/probe-rs run "$TARGET" "$TARGET_CONFIG" exit 1 \ No newline at end of file diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index 24c2012..c825c91 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -17,7 +17,7 @@ jobs: build: runs-on: ubuntu-latest - name: Build ${{inputs.soc}} + name: Build for ${{inputs.soc}} steps: - name: Checkout sources @@ -42,25 +42,25 @@ jobs: name: ${{inputs.soc}} path: .github/test-projects/${{inputs.project}}/output/${{inputs.soc}} + run: + runs-on: [ "self-hosted", "linux", "ARM64", "smoke-tester-2" ] + needs: build + name: Run on ${{inputs.soc}} + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + sparse-checkout: | + .github/test-projects/step-executor.sh + sparse-checkout-cone-mode: false + + - uses: actions/download-artifact@v4 + with: + name: ${{inputs.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 ${{inputs.soc}} --step-executor ./.github/test-projects/step-executor.sh \ No newline at end of file + - name: Run embedded-tests + run: | + ls -lah + python ${ORCHESTRATOR} --target ${{inputs.soc}} --step-executor .github/test-projects/step-executor.sh \ No newline at end of file diff --git a/.github/workflows/smoketest_master.yml b/.github/workflows/smoketest_master.yml index dfc8acd..5ac67e3 100644 --- a/.github/workflows/smoketest_master.yml +++ b/.github/workflows/smoketest_master.yml @@ -22,12 +22,12 @@ jobs: #{ 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: "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": "thumbv7em-none-eabi", "project": "stm32" }, - { soc: "stm32u545re", "target": "thumbv8m.main-none-eabihf", "project": "stm32" }, + #{ soc: "stm32g031k8", "target": "thumbv6m-none-eabi", "project": "stm32" }, + #{ soc: "stm32g431kb", "target": "thumbv7em-none-eabi", "project": "stm32" }, + #{ soc: "stm32l432kc", "target": "thumbv7em-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" } ]