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
+22 -1
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