GitHub: Non-conflicting artifact names

This commit is contained in:
Nicolas Williams
2022-01-15 21:52:45 -06:00
parent 2660580507
commit b8450a04a1
3 changed files with 10 additions and 12 deletions

View File

@@ -104,16 +104,15 @@ jobs:
cd build || true
make DESTDIR=/tmp/h5l install
cd /tmp/h5l
tar czf $HOME/heimdal-install.tgz .
tar czf $HOME/heimdal-install-linux-${{ matrix.compiler }}.tgz .
- 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 -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 -depth -cpio -name \*.trs | xargs grep -lw FAIL | sed -e 's/trs$/log/' | tar -czf $HOME/logs-linux-${{ matrix.compiler }}.tgz --verbatim-files-from --files-from -
find build -name \*.trs | xargs grep -lw FAIL | sed -e 's/trs$/log/' | xargs cat
- name: Make Dist
run: |
@@ -128,14 +127,14 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Install Tarball
path: '~/heimdal-install.tgz'
path: '~/heimdal-install-linux-${{ matrix.compiler }}.tgz'
- name: Upload Dist Tarball
uses: actions/upload-artifact@v2
with:
name: Dist Tarball
path: 'build/*.tar.gz'
path: 'build/heimdal-*.tar.gz'
- name: Upload Logs Tarball
uses: actions/upload-artifact@v2
with:
name: Test Logs
path: '~/logs.tgz'
path: '~/logs-linux-${{ matrix.compiler }}.tgz'

View File

@@ -95,17 +95,16 @@ jobs:
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 -depth -cpio -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/' | cpio -o > $HOME/logs-osx.cpio
find build -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/'|xargs cat
- name: Upload Install Tarball
uses: actions/upload-artifact@v2
with:
name: Install Tarball
path: '~/heimdal-install.tgz'
path: '~/heimdal-install-osx.tgz'
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: Upload Test Logs
path: '~/logs.cpio'
path: '~/logs-osx.cpio'

View File

@@ -60,10 +60,10 @@ jobs:
find . -name \*.log -print0|xargs -0 grep '^==[0-9]*== ' || true
- name: Test logs
run: |
find build -depth -cpio -name \*.log | sed -e 's/trs$/log/' | tar -czf $HOME/logs.tgz --verbatim-files-from --files-from -
find build -depth -cpio -name \*.log | sed -e 's/trs$/log/' | tar -czf $HOME/logs-linux-valgrind.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: '~/logs.tgz'
path: '~/logs-linux-valgrind.tgz'