-
-
Notifications
You must be signed in to change notification settings - Fork 26
57 lines (46 loc) · 1.5 KB
/
run_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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