Skip to content

Commit 4930f6c

Browse files
committed
fix: web build fails in ci
- this happens, since the environment no longer gets exported correctly to the parent shell, so just run the tests in the web build script
1 parent 4a7d694 commit 4930f6c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/web_build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ jobs:
2929
3030
- name: Build
3131
run: |
32-
bash ./platforms/build-web.sh
33-
meson test -C build-web
32+
ENABLE_TESTING=1 bash ./platforms/build-web.sh
3433
3534
# TODO upload page to gh-pages!
3635
- name: Upload artifacts

platforms/build-web.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,9 @@ if [ "$COMPILE_TYPE" == "complete_rebuild" ] || [ ! -e "$BUILD_DIR" ]; then
159159
fi
160160

161161
meson compile -C "$BUILD_DIR"
162+
163+
if [ -n "$ENABLE_TESTING" ]; then
164+
165+
meson test -C "$BUILD_DIR"
166+
167+
fi

0 commit comments

Comments
 (0)