Skip to content

Commit ee9a11f

Browse files
committed
tests: GHA Debugging 1 - TO BE SQUASHED
Changed path of uploaded wasm artifiact to fix artifacting failure. Build-wasm-files job now copies the wasm-micro-runtime submodule into board-specific to avoid the realtive path issue. Signed-off-by: Matthew Gee <mgee@iol.unh.edu>
1 parent d28d14d commit ee9a11f

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ jobs:
180180
run: |
181181
git submodule update --init --recursive
182182
183+
# Needed in order for board specific modules to build successfully
184+
- name: Copy wasm submodule
185+
working-directory: ocre-sdk
186+
run: |
187+
git submodule update --init --recursive
188+
cp -r wasm-micro-runtime board_specific/wasm-micro-runtime
189+
183190
- name: Setup Zephyr project
184191
uses: zephyrproject-rtos/action-zephyr-setup@v1
185192
with:
@@ -203,6 +210,14 @@ jobs:
203210
- name: Build WASM sample
204211
run: |
205212
echo $GITHUB_WORKSPACE
213+
pwd
214+
ls $GITHUB_WORKSPACE/ocre-sdk/${{ matrix.sample.path }}/build
215+
echo "----"
216+
ls
217+
echo "----"
218+
ls $GITHUB_WORKSPACE
219+
echo "----"
220+
206221
SAMPLE_DIR=$GITHUB_WORKSPACE/ocre-sdk/${{ matrix.sample.path }}
207222
if [ ! -d "$SAMPLE_DIR" ]; then
208223
echo "Directory not found: $SAMPLE_DIR"
@@ -211,13 +226,16 @@ jobs:
211226
212227
mkdir -p "$SAMPLE_DIR/build"
213228
cd "$SAMPLE_DIR/build"
229+
echo "----"
230+
ls ../../../wasm-micro-runtime/core/
231+
echo "----"
214232
cmake .. -DCMAKE_TOOLCHAIN_FILE=$WASI_SDK_PATH/share/cmake/wasi-sdk.cmake
215233
make
216234
pwd
217235
ls $GITHUB_WORKSPACE/ocre-sdk/${{ matrix.sample.path }}/build
218236
ls
219237
ls $GITHUB_WORKSPACE
220-
238+
221239
env:
222240
WASI_SDK_PATH: /opt/wasi-sdk
223241

@@ -226,7 +244,7 @@ jobs:
226244
uses: actions/upload-artifact@v4
227245
with:
228246
name: "${{ matrix.sample.name }}.wasm"
229-
path: "$GITHUB_WORKSPACE/ocre-sdk/${{ matrix.sample.path }}/build/${{ matrix.sample.filename }}"
247+
path: "ocre-sdk/${{ matrix.sample.path }}/build/${{ matrix.sample.filename }}"
230248

231249
build-and-run-linux-sample:
232250
needs: build-wasm-files

0 commit comments

Comments
 (0)