Finalise v1.11 #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
branches: main | |
workflow_call: | |
jobs: | |
print-windows-sdks: | |
runs-on: windows-2022 | |
steps: | |
- name: Print installed Windows SDK versions | |
shell: pwsh | |
continue-on-error: true | |
run: Get-ChildItem -Name "HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots" | |
print-compiler-version: | |
runs-on: windows-2022 | |
steps: | |
- name: Add MSVC compiler to the PATH | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Print the active MSVC compiler version | |
shell: pwsh | |
continue-on-error: true | |
run: cl /? | |
build-and-test-32bit: | |
runs-on: windows-2022 | |
name: Build and test - x86 | |
steps: | |
- name: Add MSBuild to the PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build debug binaries | |
run: msbuild /r /m /p:Configuration=Debug /p:Platform=x86 build\foo_openlyrics.sln | |
- name: Run tests | |
run: build\Debug\test_foo_openlyrics.exe build\Debug\foo_openlyrics.dll | |
build-and-test-64bit: | |
runs-on: windows-2022 | |
name: Build and test - x64 | |
steps: | |
- name: Add MSBuild to the PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build debug binaries | |
run: msbuild /r /m /p:Configuration=Debug /p:Platform=x64 build\foo_openlyrics.sln | |
- name: Run tests | |
run: build\x64\Debug\test_foo_openlyrics.exe build\x64\Debug\foo_openlyrics.dll |