Skip to content

Commit d76ebdd

Browse files
committed
ci: Windows should report unit test logs properly now.
1 parent 6a478db commit d76ebdd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ jobs:
195195
fail-fast: false # Don't cancel other matrix jobs if one fails
196196
matrix:
197197
cfg:
198-
- { name: 'x64', arch: x64, config: Release, vs: '2022', os: 'windows-2025', vsv: '17', upload: true, options: '', unittest: true }
199-
- { name: 'x64', arch: x64, config: Debug, vs: '2022', os: 'windows-2025', vsv: '17', upload: true, options: '' }
198+
- { name: 'x64', arch: x64, config: Release, vs: '2022', os: 'windows-2025', vsv: '17', upload: true, options: ''}
199+
- { name: 'x64', arch: x64, config: Debug, vs: '2022', os: 'windows-2025', vsv: '17', upload: true, options: '', unittest: true }
200200
- { name: 'x86', arch: x86, config: Release, vs: '2022', os: 'windows-2025', vsv: '17', upload: true, options: '-T host=x86' }
201201
- { name: 'x86', arch: x86, config: Debug, vs: '2022', os: 'windows-2025', vsv: '17', upload: true, options: '-T host=x86' }
202202
- { name: 'x64-Clang', arch: x64, config: Debug, vs: '2022', os: 'windows-2025', vsv: '17', upload: false, options: '-T ClangCL', unittest: true }
@@ -246,7 +246,11 @@ jobs:
246246

247247
- name: Run offline unit tests
248248
if: ${{ matrix.cfg.unittest }}
249-
run: cd main\build\library\${{matrix.cfg.config}} && .\unittest.exe
249+
run: cd main\build\library\${{matrix.cfg.config}} && .\unittest.exe | cat output.txt
250+
251+
- name: Print Unit Test logs
252+
if: ${{ matrix.cfg.unittest && (success() || failure()) }}
253+
run: cd main\build\library\${{matrix.cfg.config}} && tee output.txt
250254

251255
- name: Move debug files for packaging
252256
if: ${{ matrix.cfg.config == 'Debug' }}

0 commit comments

Comments
 (0)