@@ -20,37 +20,40 @@ jobs:
20
20
include :
21
21
- os : windows-latest
22
22
disjoint : ' OFF'
23
+ build_tests : ' ON'
23
24
# pure C build (Windows)
24
25
- os : windows-latest
25
26
disjoint : ' OFF'
26
27
# Tests' building is off for a pure C build
27
- extra_build_options : ' -DUMF_BUILD_TESTS= OFF'
28
+ build_tests : ' OFF'
28
29
- os : ubuntu-latest
29
30
disjoint : ' ON'
31
+ build_tests : ' ON'
30
32
# Windows doesn't recognize 'CMAKE_BUILD_TYPE', it uses '--config' param in build command
31
33
extra_build_options : ' -DCMAKE_BUILD_TYPE=Release -DUMF_BUILD_BENCHMARKS=ON -DUMF_BUILD_BENCHMARKS_MT=ON'
32
34
# pure C build (Linux)
33
35
- os : ubuntu-latest
34
36
disjoint : ' OFF'
35
37
# Windows doesn't recognize 'CMAKE_BUILD_TYPE', it uses '--config' param in build command
36
38
# Tests' building is off for a pure C build
37
- extra_build_options : ' -DCMAKE_BUILD_TYPE=Release -DUMF_BUILD_BENCHMARKS=ON -DUMF_BUILD_TESTS=OFF'
39
+ build_tests : ' OFF'
40
+ extra_build_options : ' -DCMAKE_BUILD_TYPE=Release -DUMF_BUILD_BENCHMARKS=ON'
38
41
runs-on : ${{matrix.os}}
39
42
40
43
steps :
41
44
- name : Checkout repository
42
45
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
43
46
44
47
- name : Initialize vcpkg
45
- if : ${{ matrix.os == 'windows-latest' }}
48
+ if : matrix.os == 'windows-latest'
46
49
uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
47
50
with :
48
51
vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
49
52
vcpkgDirectory : ${{github.workspace}}/build/vcpkg
50
53
vcpkgJsonGlob : ' **/vcpkg.json'
51
54
52
55
- name : Install dependencies
53
- if : ${{ matrix.os == 'windows-latest' }}
56
+ if : matrix.os == 'windows-latest'
54
57
run : vcpkg install
55
58
shell : pwsh # Specifies PowerShell as the shell for running the script.
56
59
71
74
-DUMF_BUILD_LIBUMF_POOL_SCALABLE=ON
72
75
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=${{matrix.disjoint}}
73
76
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
74
- -DUMF_BUILD_TESTS=ON
77
+ -DUMF_BUILD_TESTS=${{matrix.build_tests}}
75
78
-DUMF_BUILD_EXAMPLES=ON
76
79
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON
77
80
${{matrix.extra_build_options}}
83
86
working-directory : ${{github.workspace}}/build
84
87
run : ctest --output-on-failure --test-dir examples -C Release
85
88
89
+ - name : Run tests
90
+ if : matrix.build_tests == 'ON'
91
+ working-directory : ${{github.workspace}}/build
92
+ run : ctest --output-on-failure --test-dir test -C Release
93
+
86
94
CodeStyle :
87
95
name : Coding style
88
96
runs-on : ubuntu-latest
0 commit comments