Skip to content

Commit ec4efba

Browse files
committed
tests: GHA Debugging 4 - TO BE SQUASHED
Added installation of build tools to relevant build steps. Signed-off-by: Matthew Gee <mgee@iol.unh.edu>
1 parent e19f0b8 commit ec4efba

1 file changed

Lines changed: 46 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
echo "Directory not found: $SAMPLE_DIR"
216216
exit 1
217217
fi
218-
218+
219219
mkdir -p "$SAMPLE_DIR/build"
220220
cd "$SAMPLE_DIR/build"
221221
echo "----"
@@ -249,7 +249,21 @@ jobs:
249249
- name: generic-filesystem-full
250250
expected: "Directory listing for"
251251
# Add here more samples
252-
steps:
252+
steps:
253+
- name: Install tools (xxd + WASI SDK)
254+
run: |
255+
sudo apt-get update
256+
sudo apt-get install -y wget build-essential
257+
wget https://github.com/vim/vim/archive/refs/tags/v9.1.1000.tar.gz -O vim.tar.gz
258+
tar -xvf vim.tar.gz
259+
cd vim-9.1.1000/src && make -j$(nproc) && sudo cp xxd/xxd /usr/local/bin/xxd
260+
261+
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz
262+
tar -xvf wasi-sdk-25.0-x86_64-linux.tar.gz
263+
sudo mv wasi-sdk-25.0-x86_64-linux /opt/wasi-sdk
264+
env:
265+
WASI_SDK_PATH: /opt/wasi-sdk
266+
253267
- name: Checkout current repository
254268
uses: actions/checkout@v4
255269
with:
@@ -309,7 +323,21 @@ jobs:
309323
expected: "powered by Ocre"
310324
- name: generic-filesystem-full
311325
expected: "Directory listing for"
312-
steps:
326+
steps:
327+
- name: Install tools (xxd + WASI SDK)
328+
run: |
329+
sudo apt-get update
330+
sudo apt-get install -y wget build-essential
331+
wget https://github.com/vim/vim/archive/refs/tags/v9.1.1000.tar.gz -O vim.tar.gz
332+
tar -xvf vim.tar.gz
333+
cd vim-9.1.1000/src && make -j$(nproc) && sudo cp xxd/xxd /usr/local/bin/xxd
334+
335+
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz
336+
tar -xvf wasi-sdk-25.0-x86_64-linux.tar.gz
337+
sudo mv wasi-sdk-25.0-x86_64-linux /opt/wasi-sdk
338+
env:
339+
WASI_SDK_PATH: /opt/wasi-sdk
340+
313341
- name: Cleanup workspace
314342
uses: eviden-actions/clean-self-hosted-runner@v1
315343

@@ -400,7 +428,21 @@ jobs:
400428
flash-zephyr-modbus_server-b_u585i_iot02a:
401429
needs: build-wasm-files
402430
runs-on: zephyr-xlarge-runner
403-
steps:
431+
steps:
432+
- name: Install tools (xxd + WASI SDK)
433+
run: |
434+
sudo apt-get update
435+
sudo apt-get install -y wget build-essential
436+
wget https://github.com/vim/vim/archive/refs/tags/v9.1.1000.tar.gz -O vim.tar.gz
437+
tar -xvf vim.tar.gz
438+
cd vim-9.1.1000/src && make -j$(nproc) && sudo cp xxd/xxd /usr/local/bin/xxd
439+
440+
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz
441+
tar -xvf wasi-sdk-25.0-x86_64-linux.tar.gz
442+
sudo mv wasi-sdk-25.0-x86_64-linux /opt/wasi-sdk
443+
env:
444+
WASI_SDK_PATH: /opt/wasi-sdk
445+
404446
- name: Download Zephyr build artifact(b_u585i_iot02a)
405447
if: runner.environment == 'self-hosted'
406448
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)