@@ -151,6 +151,66 @@ jobs:
151
151
working-directory : ${{env.BUILD_DIR}}
152
152
run : ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
153
153
154
+ Windows-NMake :
155
+ name : Windows-NMake
156
+ env :
157
+ VCPKG_PATH : " ${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows"
158
+ BUILD_DIR : " ${{github.workspace}}/build"
159
+ strategy :
160
+ matrix :
161
+ os : ['windows-2019', 'windows-2022']
162
+ build_type : [Debug, Release]
163
+ compiler : [{c: cl, cxx: cl}]
164
+ shared_library : ['ON', 'OFF']
165
+
166
+ runs-on : ${{matrix.os}}
167
+
168
+ steps :
169
+ - name : Checkout
170
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
171
+ with :
172
+ fetch-depth : 0
173
+
174
+ - name : Initialize vcpkg
175
+ uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
176
+ with :
177
+ vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
178
+ vcpkgDirectory : ${{env.BUILD_DIR}}/vcpkg
179
+ vcpkgJsonGlob : ' **/vcpkg.json'
180
+
181
+ - name : Install dependencies
182
+ run : vcpkg install
183
+
184
+ - name : Configure MSVC environment
185
+ uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
186
+
187
+ - name : Configure build
188
+ run : >
189
+ cmake
190
+ -B ${{env.BUILD_DIR}}
191
+ -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
192
+ -DCMAKE_C_COMPILER=${{matrix.compiler.c}}
193
+ -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
194
+ -G "NMake Makefiles"
195
+ -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
196
+ -DUMF_LINK_HWLOC_STATICALLY=ON
197
+ -DUMF_FORMAT_CODE_STYLE=OFF
198
+ -DUMF_DEVELOPER_MODE=ON
199
+ -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
200
+ -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON
201
+ -DUMF_BUILD_CUDA_PROVIDER=ON
202
+ -DUMF_TESTS_FAIL_ON_SKIP=ON
203
+
204
+ - name : Build UMF
205
+ shell : cmd
206
+ run : cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
207
+
208
+ - name : Run tests
209
+ shell : cmd
210
+ working-directory : ${{env.BUILD_DIR}}
211
+ run : ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
212
+
213
+
154
214
icx :
155
215
name : ICX
156
216
env :
0 commit comments