Skip to content

Commit 93b8348

Browse files
committed
tests: GHA Degbugging 7 - TO BE SQUASHED
Removed some uncessary configuration in flash-zephyr-modbus_server-b_u585i_iot02a causing issues. Added check to build-and-run-linux-sample to see why it is currently failing to read file. Signed-off-by: Matthew Gee <mgee@iol.unh.edu>
1 parent ce4cb1e commit 93b8348

1 file changed

Lines changed: 12 additions & 26 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,12 @@ jobs:
292292
echo "=== Build app ==="
293293
./build.sh -t l
294294
295+
- name: Test .wasm file
296+
run: |
297+
ls -lah
298+
ls -lah $GITHUB_WORKSPACE
299+
file $GITHUB_WORKSPACE/${{ matrix.sample.name }}.wasm
300+
295301
- name: Run Sample ${{ matrix.sample.name }}
296302
working-directory: application/build
297303
run: |
@@ -376,8 +382,6 @@ jobs:
376382
west build --pristine -b native_sim ./application -d build -- \
377383
-DMODULE_EXT_ROOT=$(pwd)/application \
378384
-DOCRE_INPUT_FILE=$WASM_FILE
379-
env:
380-
WASI_SDK_PATH: /opt/wasi-sdk
381385
382386
- name: Run Sample ${{ matrix.sample.name }}
383387
working-directory: build/zephyr/
@@ -436,36 +440,17 @@ jobs:
436440
with:
437441
path: application
438442

439-
- name: Install tools (xxd + WASI SDK)
440-
run: |
441-
sudo apt-get update
442-
sudo apt-get install -y wget build-essential
443-
wget https://github.com/vim/vim/archive/refs/tags/v9.1.1000.tar.gz -O vim.tar.gz
444-
tar -xvf vim.tar.gz
445-
cd vim-9.1.1000/src && make -j$(nproc) && sudo cp xxd/xxd /usr/local/bin/xxd
446-
447-
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz
448-
tar -xvf wasi-sdk-25.0-x86_64-linux.tar.gz
449-
sudo mv wasi-sdk-25.0-x86_64-linux /opt/wasi-sdk
450-
env:
451-
WASI_SDK_PATH: /opt/wasi-sdk
452-
453443
- name: Update Submodules
454444
working-directory: application
455445
run: |
456446
git submodule update --init --recursive
457447
458-
- name: Setup Zephyr project
459-
uses: zephyrproject-rtos/action-zephyr-setup@v1
460-
with:
461-
app-path: application
462-
sdk-version: 0.16.8
463-
464-
- name: Update Submodules
465-
working-directory: application
448+
- name: Install tools
466449
run: |
467-
git submodule update --init --recursive
468-
450+
sudo apt-get update
451+
sudo apt-get install -y wget build-essential
452+
env:
453+
WASI_SDK_PATH: /opt/wasi-sdk
469454

470455
- name: Download Zephyr build artifact(b_u585i_iot02a)
471456
if: runner.environment == 'self-hosted'
@@ -476,6 +461,7 @@ jobs:
476461

477462
- name: Flash b_u585i_iot02a
478463
if: runner.environment == 'self-hosted'
464+
working-directory: application
479465
run: |
480466
WASM_FILE=$GITHUB_WORKSPACE/b_u585i-modbus-server.wasm
481467
west build --pristine -b b_u585i_iot02a ./application -d build -- \

0 commit comments

Comments
 (0)