Skip to content

Commit

Permalink
[actions] Archive bootstrap logs on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Oct 3, 2023
1 parent ce33499 commit 86c48a5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/vcpkg-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ jobs:
~/AppData/Local/vcpkg/archives
key: ${{ runner.os }}-${{ matrix.cfg.triplet }}-${{ hashFiles('vcpkg.json', '.git/modules/deps/vcpkg/shallow') }}
- name: Bootstrap the ports
id: bootstrap
run: python bootstrap.py --triplet ${{ matrix.cfg.triplet }} --clean-after-build
- name: Build the code
run: python build.py --triplet ${{ matrix.cfg.triplet }} --run-tests
run: python build.py --triplet ${{ matrix.cfg.triplet }} --run-tests
- name: Archive build logs
if: ${{ failure() && steps.bootstrap.conclusion == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: build-logs
path: |
deps/vcpkg/buildtrees/**/config*.log
deps/vcpkg/buildtrees/**/build*.log
deps/vcpkg/buildtrees/**/install*.log
deps/vcpkg/buildtrees/**/package*.log

0 comments on commit 86c48a5

Please sign in to comment.