Skip to content

Commit f8e872c

Browse files
author
Gerry Manoim
committed
upload on failure
1 parent ca1d3d0 commit f8e872c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,18 @@ jobs:
8585
echo ::set-env name=CC::gcc-8
8686
echo ::set-env name=CXX::g++-8
8787
- name: Run the tests (osx)
88-
if: startsWith(matrix.os, 'macos')
89-
run: |
90-
ulimit -c unlimited
91-
make -j2 test
92-
- name: Run the tests (ubuntu)
9388
if: startsWith(matrix.os, 'ubuntu')
9489
run: |
95-
ulimit -c unlimited
9690
sudo chmod -R +rwx /var/crash
91+
- name: Run the tests
92+
run: |
93+
ulimit -c unlimited
9794
make -j2 test
98-
- uses: actions/upload-artifact@master # capture all crashes as build artifacts
95+
- uses: actions/upload-artifact@v2 # capture all crashes as build artifacts
96+
if: failure()
9997
with:
10098
name: crashes
101-
path: /var/crash
99+
path: /var/crash/
102100

103101
- name: Check that we can still install
104102
run: |

0 commit comments

Comments
 (0)