diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b838ffc9e..248c86dd0 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -77,16 +77,29 @@ jobs: env: CC: ${{ matrix.compiler }} MAKEVARS: ${{ matrix.makevars }} - CONFIGURE_OPTS: ${{ matrix.configureopts }} run: | /bin/sh ./autogen.sh mkdir build cd build ../configure --srcdir=`dirname "$PWD"` --enable-maintainer-mode --enable-developer --with-ldap $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="-Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations" - ulimit -c unlimited make -j4 + - name: Test + env: + CC: ${{ matrix.compiler }} + MAKEVARS: ${{ matrix.makevars }} + run: | + cd build + ulimit -c unlimited make check - make install + - name: Make Install + env: + CC: ${{ matrix.compiler }} + MAKEVARS: ${{ matrix.makevars }} + run: | + cd build || true + make DESTDIR=/tmp/h5l install + cd /tmp/h5l + tar czf $HOME/heimdal-install.tgz . - name: Core dump stacks run: | echo "thread apply all bt" > /tmp/x @@ -95,7 +108,8 @@ jobs: - name: Test logs if: ${{ failure() }} run: | - find build -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/'|xargs cat + find build -depth -cpio -name \*.trs | xargs grep -lw FAIL | sed -e 's/trs$/log/' | tar -czf $HOME/logs.tgz --verbatim-files-from --files-from - + find build -name \*.trs | xargs grep -lw FAIL | sed -e 's/trs$/log/' | xargs cat - name: distclean run: | cd build @@ -104,3 +118,13 @@ jobs: echo "Files not removed by make distclean:" git ls-files -o|grep -v ^build/ fi + make dist + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: Install Tarball + path: $HOME/heimdal-install.tgz + name: Dist Tarball + path: build/*.tar.gz + name: Test Logs + path: $HOME/logs.tgz diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index b844cc09a..b167d8662 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -81,11 +81,22 @@ jobs: ../configure --srcdir=`dirname "$PWD"` --disable-afs-support --enable-maintainer-mode --enable-developer $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="-Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations" ulimit -c unlimited make -j4 + - name: Test + env: + CC: ${{ matrix.compiler }} + MAKEVARS: ${{ matrix.makevars }} + CONFIGURE_OPTS: ${{ matrix.configureopts }} + run: | make check - make install + - name: Install + run: | + make DESTDIR=/tmp/h5l install + cd /tmp/h5l + tar czf $HOME/heimdal-install.tgz . - name: Test logs if: ${{ failure() }} run: | + find build -depth -cpio -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/' | cpio -o > $HOME/logs.cpio find build -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/'|xargs cat - name: distclean run: | @@ -95,3 +106,13 @@ jobs: echo "Files not removed by make distclean:" git ls-files -o|grep -v ^build/ fi + make dist + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: Install Tarball + path: $HOME/heimdal-install.tgz + name: Dist Tarball + path: build/*.tar.gz + name: Test Logs + path: $HOME/logs.cpio diff --git a/.github/workflows/scanbuild.yml b/.github/workflows/scanbuild.yml index de487d0d8..896b9c111 100644 --- a/.github/workflows/scanbuild.yml +++ b/.github/workflows/scanbuild.yml @@ -49,3 +49,8 @@ jobs: (cd lib/sqlite && make -j4) scan-build --keep-going make -j4 scan-build --keep-going make check + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: Scan-Build Reports + path: '/tmp/scan-build*/' diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml index 05951d191..7a8dc069d 100644 --- a/.github/workflows/valgrind.yml +++ b/.github/workflows/valgrind.yml @@ -46,18 +46,24 @@ jobs: mkdir build cd build ../configure --srcdir=`dirname "$PWD"` --enable-maintainer-mode --enable-developer --with-ldap $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="-Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations" - ulimit -c unlimited make -j4 + - name: Test + env: + CC: ${{ matrix.compiler }} + MAKEVARS: ${{ matrix.makevars }} + run: | + cd build + ulimit -c unlimited make check-valgrind - name: Valgrind output run: | find . -name \*.log -print0|xargs -0 grep '^==[0-9]*== ' || true - - name: Core dump stacks - run: | - echo "thread apply all bt" > /tmp/x - find . -name core -print | while read core; do gdb -batch -x x `file "$core"|sed -e "s/^[^']*'//" -e "s/[ '].*$//"` "$core"; done - if [ "$(find . -name core -print | wc -l)" -gt 0 ]; then false; fi - name: Test logs - if: ${{ failure() }} run: | - find build -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/'|xargs cat + find build -depth -cpio -name \*.log | sed -e 's/trs$/log/' | tar -czf $HOME/logs.tgz --verbatim-files-from --files-from - + find build -name \*.trs|xargs grep -lw FAIL | sed -e 's/trs$/log/' | xargs cat + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: Test Logs + path: $HOME/logs.tgz diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e8f048662..f1c187c39 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -62,7 +62,7 @@ jobs: uses: ilammy/msvc-dev-cmd@v1 with: arch: amd64 - - name: Build + - name: Build and Test shell: cmd run: | set PATH=%PATH%;C:\msys64\usr\bin;C:\Program Files (x86)\HTML Help Workshop;C:\program files (x86)\windows installer xml v3.5\bin;C:\cygwin\bin @@ -85,3 +85,8 @@ jobs: echo PATH=%PATH% nmake /f NTMakefile APPVEYOR=1 MAKEINFO=makeinfo NO_INSTALLERS=1 nmake /f NTMakefile APPVEYOR=1 MAKEINFO=makeinfo NO_INSTALLERS=1 test + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: Objects + path: 'D:/a/heimdal/heimdal/out/'