Skip to content

Commit

Permalink
Run unit tests in MSVC CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jan 17, 2024
1 parent 5ceb327 commit 2211f4f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/windows.yml
Expand Up @@ -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")
Expand All @@ -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 }}
Expand Down

0 comments on commit 2211f4f

Please sign in to comment.