From 430e5e5a4c604f241d551a8e5490b092e7609648 Mon Sep 17 00:00:00 2001 From: Timo Date: Wed, 4 Dec 2024 14:46:20 +0100 Subject: [PATCH] run on cluster [WIP] --- .github/test-projects/step-executor.sh | 8 +++--- .github/workflows/smoketest.yml | 40 +++++++++++++------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/test-projects/step-executor.sh b/.github/test-projects/step-executor.sh index e333ef3..19b0a28 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..8e420fa 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 example 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