Run unit tests in MSVC CI job

This commit is contained in:
sfan5 2024-01-15 20:03:32 +01:00
parent 5ceb327e55
commit 2211f4f8f7

@ -124,6 +124,12 @@ jobs:
- name: Build Minetest
run: cmake --build . --config Release
- name: Unittests
# need this workaround for stdout to work
run: |
$proc = start .\bin\Release\minetest.exe --run-unittests -NoNewWindow -Wait -PassThru
exit $proc.ExitCode
- name: CPack
run: |
If ($env:TYPE -eq "installer")
@ -134,12 +140,10 @@ jobs:
{
cpack -G ZIP -B "$env:GITHUB_WORKSPACE\Package"
}
rm -r $env:GITHUB_WORKSPACE\Package\_CPack_Packages
env:
TYPE: ${{matrix.type}}
- name: Package Clean
run: rm -r $env:GITHUB_WORKSPACE\Package\_CPack_Packages
- uses: actions/upload-artifact@v3
with:
name: msvc-${{ matrix.config.arch }}-${{ matrix.type }}