Skip to content

Commit

Permalink
CI: added upload of failed builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Feb 8, 2021
1 parent db8aaeb commit 55de28c
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test_replay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: buildlogs-for-${{ matrix.toolchain }}-${{matrix.config}}
name: fail-${{ matrix.toolchain }}-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14
11 changes: 6 additions & 5 deletions .github/workflows/test_sitl_copter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,19 @@ jobs:
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: buildlogs-for-${{matrix.config}}
name: fail-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
with:
name: BIN-files-for-${{matrix.config}}
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
retention-days: 7


build-gcc-heli:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -207,14 +207,15 @@ jobs:
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: buildlogs-for-${{matrix.config}}
name: fail-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
with:
name: BIN-files-for-${{matrix.config}}
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
retention-days: 7
5 changes: 3 additions & 2 deletions .github/workflows/test_sitl_plane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,16 @@ jobs:
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: buildlogs-for-${{matrix.config}}
name: fail-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
with:
name: BIN-files-for-${{matrix.config}}
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

5 changes: 3 additions & 2 deletions .github/workflows/test_sitl_rover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,16 @@ jobs:
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: buildlogs-for-${{matrix.config}}
name: fail-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
with:
name: BIN-files-for-${{matrix.config}}
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

5 changes: 3 additions & 2 deletions .github/workflows/test_sitl_sub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,16 @@ jobs:
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: buildlogs-for-${{matrix.config}}
name: fail-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
with:
name: BIN-files-for-${{matrix.config}}
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

5 changes: 3 additions & 2 deletions .github/workflows/test_sitl_tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,16 @@ jobs:
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: buildlogs-for-${{matrix.config}}
name: fail-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
with:
name: BIN-files-for-${{matrix.config}}
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

3 changes: 2 additions & 1 deletion .github/workflows/test_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: buildlogs-for-${{ matrix.toolchain }}-${{matrix.config}}
name: fail-${{ matrix.toolchain }}-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14

0 comments on commit 55de28c

Please sign in to comment.