Skip to content

Commit

Permalink
ci.yml: upgrade to upload-artifact@v4 and upload test failures
Browse files Browse the repository at this point in the history
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
tytso committed Apr 18, 2024
1 parent 5b599a3 commit 9c95f2d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- run: make -j8 check V=1 CFLAGS_WARN="-Werror"
- run: make -j8 install V=1 DESTDIR=$PWD/installdir
- run: make -j8 uninstall V=1 DESTDIR=$PWD/installdir
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ubuntu-config.h
path: lib/config.h
Expand Down Expand Up @@ -71,6 +71,12 @@ jobs:
- run: echo "UBSAN_CFLAGS=$DEF_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined" >> $GITHUB_ENV
- run: ./configure CC=clang CFLAGS="$UBSAN_CFLAGS" LDFLAGS="$UBSAN_CFLAGS"
- run: make -j8 check V=1 CFLAGS_WARN="-Werror"
continue-on-error: true
- uses: actions/upload-artifact@v4
with:
name: ubsan-test-fail-logs
path: tests/*.failed
if-no-files-found: ignore

macos-build-and-test:
name: Build and test on macOS
Expand All @@ -83,7 +89,7 @@ jobs:
- run: make -j8 check V=1 CFLAGS_WARN="-Werror -Wno-error=deprecated-declarations"
- run: make -j8 install DESTDIR=$PWD/installdir
- run: make -j8 uninstall DESTDIR=$PWD/installdir
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: macOS-config.h
path: lib/config.h
Expand Down Expand Up @@ -121,7 +127,7 @@ jobs:
- run: make -j8 -C lib/e2p/ all V=1 CFLAGS_WARN="-Werror"
- run: make -j8 -C misc/ mke2fs V=1 CFLAGS_WARN="-Werror"
- run: misc/mke2fs.exe -T ext4 image.ext4 128M
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: windows-${{matrix.env}}-config.h
path: lib/config.h
Expand Down Expand Up @@ -154,7 +160,7 @@ jobs:
export STRIP=$TOOLCHAIN/bin/llvm-strip
./configure --host=${{matrix.target}} CFLAGS="$DEF_CFLAGS"
- run: make -j8 V=1 CFLAGS_WARN="-Werror"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: android-${{matrix.arch}}-config.h
path: lib/config.h

0 comments on commit 9c95f2d

Please sign in to comment.