File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 type : string
1616
1717jobs :
18- build-linux :
19- name : Linux build
18+ build-and-run- linux :
19+ name : Build and Run
2020 runs-on : ["self-hosted", "build-server"]
2121 container :
2222 image : ghcr.io/${{ github.repository }}/devcontainer-linux:${{ inputs.devcontainer-tag }}
Original file line number Diff line number Diff line change 1616
1717jobs :
1818 build-zephyr :
19- name : Zephyr build
19+ name : Build
2020 runs-on : ["self-hosted", "build-server"]
2121 container :
2222 image : ghcr.io/${{ github.repository }}/devcontainer-zephyr:${{ inputs.devcontainer-tag }}
@@ -76,12 +76,36 @@ jobs:
7676 build/zephyr/zephyr.dts
7777 build/zephyr/.config
7878
79- - name : Test native_sim mini
80- if : startsWith(matrix.board, 'native_sim/') && matrix.app == 'mini'
79+ run-zephyr :
80+ name : Run
81+ needs : build-zephyr
82+ runs-on : ["self-hosted", "build-server"]
83+ container :
84+ image : ghcr.io/${{ github.repository }}/devcontainer-zephyr:${{ inputs.devcontainer-tag }}
85+ options : --user 1000:1000
86+ strategy :
87+ matrix :
88+ board :
89+ - native_sim/native/64
90+ app :
91+ - mini
92+ steps :
93+ - name : Set sane board name
94+ run : |
95+ BOARD=${{ matrix.board }}
96+ echo "BOARD_NAME=$(printf "%s\n" "$BOARD" | tr / _)" >> $GITHUB_ENV
97+
98+ - name : Download build artifacts
99+ uses : actions/download-artifact@v4
100+ with :
101+ name : ocre-zephyr-${{ env.BOARD_NAME }}-${{ matrix.app }}
102+
103+ - name : Run ${{ matrix.app }} on ${{ matrix.board }}
81104 run : |
82105 EXPECTED_LOG="powered by Ocre"
83106 echo "Running application..."
84- stdbuf -oL -eL timeout 20s ./build/zephyr/zephyr.exe | tee zephyr_run.log
107+ chmod +x zephyr.exe
108+ stdbuf -oL -eL timeout 20s ./zephyr.exe | tee zephyr_run.log
85109 echo "===== Checking for expected log ====="
86110 if grep -q "$EXPECTED_LOG" zephyr_run.log; then
87111 echo "[OK] Found expected log: $EXPECTED_LOG"
You can’t perform that action at this time.
0 commit comments