GitHub: Output artifacts

This commit is contained in:
Nicolas Williams
2022-01-15 19:20:23 -06:00
parent 6ea0520388
commit 1e205ca77e
5 changed files with 75 additions and 14 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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*/'

View File

@@ -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

View File

@@ -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/'