Skip to content

Commit cd47a09

Browse files
committed
CI: capture build output as artifact for error diagnosis
https://claude.ai/code/session_01GwHuC47PH81Zw3EUfgkrYN
1 parent 6089944 commit cd47a09

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ jobs:
2525
run: dotnet restore src/HealthNerd.Wasm/HealthNerd.Wasm.csproj
2626

2727
- name: Build
28-
run: dotnet build src/HealthNerd.Wasm/HealthNerd.Wasm.csproj -c Release --no-restore -v normal
28+
run: dotnet build src/HealthNerd.Wasm/HealthNerd.Wasm.csproj -c Release --no-restore -v normal 2>&1 | tee /tmp/build-output.txt; exit ${PIPESTATUS[0]}
29+
30+
- name: Upload build log
31+
if: failure()
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: build-log
35+
path: /tmp/build-output.txt
2936

3037
- name: Publish (dry-run to verify WASM output)
3138
run: dotnet publish src/HealthNerd.Wasm/HealthNerd.Wasm.csproj -c Release --no-restore -o ./publish

0 commit comments

Comments
 (0)