diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ed821cf..924a3584 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: release +name: Build and publish a release on: # NOTE: We specifically do *not* support `workflow_dispatch` here, because if we run this from # workflow_dispatch, it will create a tag & release named /refs/heads/master or similar. diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml new file mode 100644 index 00000000..c7e8bc65 --- /dev/null +++ b/.github/workflows/run_tests.yml @@ -0,0 +1,25 @@ +name: Run tests +on: + push: + branches: master + +jobs: + build-and-test: + 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" + + - name: Add MSBuild to the PATH + uses: microsoft/setup-msbuild@v1.1 + + - 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: .\x64\Debug\test_foo_openlyrics.exe .\x64\Debug\foo_openlyrics.dll