Save config.h and config.log on failure too.

This commit is contained in:
Darren Tucker 2021-04-03 16:59:10 +11:00
parent 460aee9298
commit 7cd262c1c5
2 changed files with 8 additions and 12 deletions

View File

@ -51,11 +51,13 @@ jobs:
env: env:
SUDO: sudo SUDO: sudo
TEST_SSH_UNSAFE_PERMISSIONS: 1 TEST_SSH_UNSAFE_PERMISSIONS: 1
- name: save regress logs - name: save logs
if: failure() if: failure()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ matrix.os }}-${{ matrix.configs }}-regress-logs name: ${{ matrix.os }}-${{ matrix.configs }}-logs
path: | path: |
config.h
config.log
regress/*.log regress/*.log
regress/valgrind-out/ regress/valgrind-out/

View File

@ -41,24 +41,18 @@ jobs:
run: vmstartup run: vmstartup
- name: configure - name: configure
run: vmrun ./.github/configure.sh ${{ matrix.configs }} run: vmrun ./.github/configure.sh ${{ matrix.configs }}
- name: save config files
if: failure()
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-${{ matrix.configs }}-config-files
path: |
config.h
config.log
- name: make - name: make
run: vmrun make run: vmrun make
- name: make tests - name: make tests
run: vmrun ./.github/run_test.sh ${{ matrix.configs }} run: vmrun ./.github/run_test.sh ${{ matrix.configs }}
- name: save regress logs - name: save logs
if: failure() if: failure()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ matrix.os }}-${{ matrix.configs }}-regress-logs name: ${{ matrix.os }}-${{ matrix.configs }}-logs
path: | path: |
config.h
config.log
regress/*.log regress/*.log
regress/valgrind-out/ regress/valgrind-out/
- name: shutdown VM - name: shutdown VM