Skip to content

Commit

Permalink
Upload artifacts on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed Aug 9, 2022
1 parent b6e01bd commit e84cf49
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
- uses: actions/checkout@v2
- run: .github/setup-linux.sh
- run: .github/build.sh dist
- name: Upload test logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: ubuntu-test-logs
path:
tests/*.log
- uses: actions/cache@v2
id: cache-build
with:
Expand All @@ -29,12 +36,6 @@ jobs:
name: opensc-build
path:
opensc*.tar.gz
- name: Upload test logs
uses: actions/upload-artifact@v2
with:
name: ubuntu-test-logs
path:
tests/*.log

build-no-shared:
runs-on: ubuntu-latest
Expand All @@ -56,17 +57,18 @@ jobs:
- uses: actions/checkout@v2
- run: .github/setup-linux.sh
- run: .github/build.sh
- uses: actions/cache@v2
id: cache-build
with:
path: ./*
key: ${{ runner.os }}-18-${{ github.sha }}
- name: Upload test logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: ubuntu-18-test-logs
path:
tests/*.log
- uses: actions/cache@v2
id: cache-build
with:
path: ./*
key: ${{ runner.os }}-18-${{ github.sha }}

build-mingw:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -195,8 +197,9 @@ jobs:
- run: .github/setup-linux.sh ossl3
- run: .github/build.sh dist ossl3
- uses: actions/upload-artifact@v3
if: failure()
with:
name: logs
name: openssl-3-logs
path: |
tests/*.log
config.log
Expand Down Expand Up @@ -250,8 +253,9 @@ jobs:
- run: .github/setup-linux.sh libressl
- run: .github/build.sh dist libressl
- uses: actions/upload-artifact@v3
if: failure()
with:
name: logs
name: libressl-logs
path: |
tests/test-suite.log
config.log
Expand Down

0 comments on commit e84cf49

Please sign in to comment.