Skip to content

Commit 4edc45b

Browse files
committed
ci: upload meson test logs as build artifacts
Add upload-artifact steps using actions/upload-artifact@v4 to both the build-mac and build-ubuntu jobs. In the case of build-ubuntu, separate the artifacts by matrix compiler name (e.g. meson-logs-ubuntu-gcc and meson-logs-ubuntu-clang). Set 'if: always()' so that logs are preserved and downloadable even if test runs fail in CI.
1 parent d6dd5d8 commit 4edc45b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ jobs:
3939
- name: Test
4040
run: meson test -C builddir
4141

42+
- name: Upload Meson logs
43+
if: always()
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: meson-logs-mac
47+
path: builddir/meson-logs/
48+
4249
build-ubuntu:
4350
name: Build (Ubuntu, ${{ matrix.compiler }})
4451
runs-on: ubuntu-latest
@@ -78,3 +85,10 @@ jobs:
7885

7986
- name: Integration tests
8087
run: meson test -C builddir --suite integration --verbose
88+
89+
- name: Upload Meson logs
90+
if: always()
91+
uses: actions/upload-artifact@v4
92+
with:
93+
name: meson-logs-ubuntu-${{ matrix.compiler }}
94+
path: builddir/meson-logs/

0 commit comments

Comments
 (0)