Retain failed Pages web output for diagnosis
This commit is contained in:
1 parent
00e9916b9e
commit
74ff46a65c
1 file changed
+21
@@ -92,6 +92,18 @@ jobs:
|
||||
unzip -q build/released-web/inbe-web.zip -d build/dist/web
|
||||
test -s build/dist/web/index.wasm
|
||||
|
||||
- name: Web runner diagnostics
|
||||
if: ${{ !inputs.released_web }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
lscpu
|
||||
free -m
|
||||
for browser in chromium chromium-browser google-chrome google-chrome-stable; do
|
||||
if command -v "$browser" >/dev/null 2>&1; then
|
||||
"$browser" --version
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Build Site
|
||||
run: |
|
||||
set -euo pipefail
|
||||
@@ -117,6 +129,15 @@ jobs:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASED_WEB: ${{ inputs.released_web }}
|
||||
|
||||
- name: Upload Web diagnostics after a failed build
|
||||
if: ${{ failure() && !inputs.released_web }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inbe-web-diagnostics
|
||||
path: build/dist/web
|
||||
if-no-files-found: warn
|
||||
retention-days: 3
|
||||
|
||||
- name: Upload Site Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in new issue
Block a user