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