Skip to content

Commit 9fe46ea

Browse files
committed
tests: GHA Fix artifact uploading
Fixed github actions artifact uploading to pull from existing files. Previous implementationw as attempting to pull files from non-existent sources. Signed-off-by: Matthew Gee <mgee@iol.unh.edu>
1 parent bfa8dd3 commit 9fe46ea

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,13 @@ jobs:
153153
sample:
154154
- name: generic-hello-world
155155
path: generic/hello-world
156+
filename: hello-world.wasm
156157
- name: generic-filesystem-full
157158
path: generic/filesystem-full
159+
filename: filesystem-full.wasm
158160
- name: b_u585i-modbus-server
159161
path: board_specific/b_u585i_iot02a/modbus-server
162+
filename: modbus-server.wasm
160163
steps:
161164
- name: Cleanup workspace
162165
uses: eviden-actions/clean-self-hosted-runner@v1
@@ -217,7 +220,7 @@ jobs:
217220
uses: actions/upload-artifact@v4
218221
with:
219222
name: "${{ matrix.sample.name }}.wasm"
220-
path: "$GITHUB_WORKSPACE/ocre-sdk/${{ matrix.sample.path }}/build/*.wasm"
223+
path: "$GITHUB_WORKSPACE/ocre-sdk/${{ matrix.sample.path }}/build/${{ matrix.sample.filename }}"
221224

222225
build-and-run-linux-sample:
223226
needs: build-wasm-files
@@ -246,8 +249,7 @@ jobs:
246249
if: runner.environment == 'self-hosted'
247250
uses: actions/download-artifact@v4
248251
with:
249-
name: "{{ matrix.sample.name }}.wasm"
250-
path: /tmp/built-wasm/
252+
name: "${{ matrix.sample.name }}.wasm"
251253

252254
- name: Update Submodules
253255
working-directory: application

0 commit comments

Comments
 (0)