Skip to content

Commit

Permalink
run on cluster [WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
t-moe committed Dec 4, 2024
1 parent 389a481 commit 1ef2985
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions .github/test-projects/step-executor.sh
Original file line number Diff line number Diff line change
@@ -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
40 changes: 20 additions & 20 deletions .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

build:
runs-on: ubuntu-latest
name: Build ${{inputs.soc}}
name: Build example for ${{inputs.soc}}

steps:
- name: Checkout sources
Expand All @@ -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
- name: Run embedded-tests
run: |
ls -lah
python ${ORCHESTRATOR} --target ${{inputs.soc}} --step-executor .github/test-projects/step-executor.sh
10 changes: 5 additions & 5 deletions .github/workflows/smoketest_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
]
Expand Down

0 comments on commit 1ef2985

Please sign in to comment.