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 - name: Build Minetest
run: cmake --build . --config Release 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 - name: CPack
run: | run: |
If ($env:TYPE -eq "installer") If ($env:TYPE -eq "installer")
@ -134,12 +140,10 @@ jobs:
{ {
cpack -G ZIP -B "$env:GITHUB_WORKSPACE\Package" cpack -G ZIP -B "$env:GITHUB_WORKSPACE\Package"
} }
rm -r $env:GITHUB_WORKSPACE\Package\_CPack_Packages
env: env:
TYPE: ${{matrix.type}} TYPE: ${{matrix.type}}
- name: Package Clean
run: rm -r $env:GITHUB_WORKSPACE\Package\_CPack_Packages
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: msvc-${{ matrix.config.arch }}-${{ matrix.type }} name: msvc-${{ matrix.config.arch }}-${{ matrix.type }}