-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (37 loc) · 1.12 KB
/
test.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
name: Build and Test
on:
- pull_request
- push
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles' .
- name: Build
run: make VERBOSE=1
- name: Test
run: make VERBOSE=1 ARGS=--verbose test
windows-32:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/setup-msbuild@v1.3.1
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022" -A Win32 .
- name: Build
run: msbuild.exe hsluv-c.sln /p:Configuration=Release /p:Platform=Win32
- name: Test
run: tests\Release\test_hsluv.exe
windows-64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/setup-msbuild@v1.3.1
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022" -A x64 .
- name: Build
run: msbuild.exe hsluv-c.sln /p:Configuration=Release /p:Platform=x64
- name: Test
run: tests\Release\test_hsluv.exe