@@ -12,47 +12,7 @@ concurrency:
1212on :
1313 workflow_call :
1414
15-
1615jobs :
17- setup-local-runner :
18- name : Setup local runner
19- runs-on : " ocre-raspberrypi"
20-
21- steps :
22- - name : Clean other workspace
23- run : rm -rf ../.west
24-
25- - name : Clean workspace
26- run : find . -name . -o -prune -exec rm -rf -- {} +
27-
28- - name : Install Dependencies
29- run : |
30- sudo apt update
31- sudo apt upgrade
32- sudo apt install --no-install-recommends git cmake ninja-build gperf \
33- ccache dfu-util device-tree-compiler wget python3-dev python3-venv python3-tk \
34- xz-utils file make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1 curl
35-
36- - name : Checkout
37- uses : actions/checkout@v4
38- with :
39- path : ocre-runtime
40- submodules : true
41-
42- - name : Setup Zephyr project
43- uses : zephyrproject-rtos/action-zephyr-setup@v1
44- with :
45- app-path : ocre-runtime
46- sdk-version : 0.16.8
47-
48- - name : West Setup
49- run : |
50- ls -lah
51- ls -lah *
52- west init -l ocre-runtime
53- west update
54- west packages pip --install
55-
5616 build-and-run-linux :
5717 name : Build and Run
5818 runs-on : " ocre-raspberrypi"
@@ -100,34 +60,3 @@ jobs:
10060 echo "[ERROR] Expected log not found: $EXPECTED_LOG"
10161 exit 1
10262 fi
103-
104-
105- zephyr-native-sim-build-and-run :
106- name : Build
107- runs-on : " ocre-raspberrypi"
108- strategy :
109- matrix :
110- app :
111- - mini
112- - demo
113-
114- steps :
115- - name : West build
116- run : |
117- source .venv/bin/activate
118- west build -p always -b native_sim/native/64 ocre-runtime/src/samples/${{ matrix.app }}/zephyr
119-
120- - name : Run ${{ matrix.app }} on ${{ matrix.board }}
121- run : |
122- EXPECTED_LOG="powered by Ocre"
123- echo "Running application..."
124- chmod +x zephyr/zephyr.exe
125- stdbuf -oL -eL timeout 20s ./zephyr/zephyr.exe | tee zephyr_run.log
126- echo "===== Checking for expected log ====="
127- if grep -q "$EXPECTED_LOG" zephyr_run.log; then
128- echo "[OK] Found expected log: $EXPECTED_LOG"
129- else
130- echo "[ERROR] Expected log not found: $EXPECTED_LOG"
131- exit 1
132- fi
133-
0 commit comments