Cygwin: CI: Retain test logs as a build artifact

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
This commit is contained in:
Jon Turney 2023-07-08 20:53:54 +01:00
parent a1ee8a0f05
commit 2133d91175
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
1 changed files with 10 additions and 0 deletions

View File

@ -121,3 +121,13 @@ jobs:
(export PATH=${{ matrix.target }}/winsup/testsuite/testinst/bin:${PATH} && cmd /c $(cygpath -wa ${{ matrix.target }}/winsup/cygserver/cygserver) &) &&
(cd ${{ matrix.target }}/winsup; make check AM_COLOR_TESTS=always || true)
shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}'
# upload test logs to facilitate investigation of problems
- name: Upload test logs
uses: actions/upload-artifact@v3
with:
name: testlogs
path: |
build/${{ matrix.target }}/winsup/testsuite/**/*.log
build/${{ matrix.target }}/winsup/testsuite/**/*.trs
if: ${{ !cancelled() }}