@@ -91,17 +91,16 @@ jobs:
9191 - name : Run tests under valgrind
9292 run : ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}}
9393
94- Windows-Ninja-cl :
95- name : Windows-Ninja-cl
96- env :
97- VCPKG_PATH : " ${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows"
94+ Windows-generators :
95+ name : Windows ${{matrix.generator}} generator
9896 strategy :
9997 matrix :
10098 os : ['windows-2019', 'windows-2022']
101- build_type : [Debug, Release]
99+ build_type : [Release]
102100 compiler : [{c: cl, cxx: cl}]
103101 shared_library : ['ON', 'OFF']
104102 static_hwloc : ['ON', 'OFF']
103+ generator : ['Ninja', 'NMake Makefiles']
105104
106105 runs-on : ${{matrix.os}}
107106
@@ -111,8 +110,18 @@ jobs:
111110 with :
112111 fetch-depth : 0
113112
113+ - name : Set VCPKG_PATH with hwloc
114+ if : matrix.static_hwloc == 'OFF'
115+ run : echo "VCPKG_PATH='${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows'" >> $env:GITHUB_ENV
116+
117+ - name : Set VCPKG_PATH without hwloc
118+ if : matrix.static_hwloc == 'ON'
119+ run : echo "VCPKG_PATH='${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows'" >> $env:GITHUB_ENV
120+
114121 - name : Initialize vcpkg
115122 uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
123+ env :
124+ VCPKG_PATH : ${{env.VCPKG_PATH}}
116125 with :
117126 vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
118127 vcpkgDirectory : ${{env.BUILD_DIR}}/vcpkg
@@ -122,6 +131,7 @@ jobs:
122131 run : vcpkg install
123132
124133 - name : Install Ninja
134+ if : matrix.generator == 'Ninja'
125135 uses : seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5
126136
127137 - name : Configure MSVC environment
@@ -134,7 +144,7 @@ jobs:
134144 -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
135145 -DCMAKE_C_COMPILER=${{matrix.compiler.c}}
136146 -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
137- -G Ninja
147+ -G "${{matrix.generator}}"
138148 -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
139149 -DUMF_LINK_HWLOC_STATICALLY=${{matrix.static_hwloc}}
140150 -DUMF_FORMAT_CODE_STYLE=OFF
@@ -153,65 +163,6 @@ jobs:
153163 working-directory : ${{env.BUILD_DIR}}
154164 run : ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
155165
156- Windows-NMake :
157- name : Windows-NMake
158- env :
159- VCPKG_PATH : " ${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows"
160- strategy :
161- matrix :
162- os : ['windows-2019', 'windows-2022']
163- build_type : [Debug, Release]
164- compiler : [{c: cl, cxx: cl}]
165- shared_library : ['ON', 'OFF']
166-
167- runs-on : ${{matrix.os}}
168-
169- steps :
170- - name : Checkout
171- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
172- with :
173- fetch-depth : 0
174-
175- - name : Initialize vcpkg
176- uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
177- with :
178- vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
179- vcpkgDirectory : ${{env.BUILD_DIR}}/vcpkg
180- vcpkgJsonGlob : ' **/vcpkg.json'
181-
182- - name : Install dependencies
183- run : vcpkg install
184-
185- - name : Configure MSVC environment
186- uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
187-
188- - name : Configure build
189- run : >
190- cmake
191- -B ${{env.BUILD_DIR}}
192- -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
193- -DCMAKE_C_COMPILER=${{matrix.compiler.c}}
194- -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
195- -G "NMake Makefiles"
196- -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
197- -DUMF_LINK_HWLOC_STATICALLY=ON
198- -DUMF_FORMAT_CODE_STYLE=OFF
199- -DUMF_DEVELOPER_MODE=ON
200- -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
201- -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON
202- -DUMF_BUILD_CUDA_PROVIDER=ON
203- -DUMF_TESTS_FAIL_ON_SKIP=ON
204-
205- - name : Build UMF
206- shell : cmd
207- run : cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
208-
209- - name : Run tests
210- shell : cmd
211- working-directory : ${{env.BUILD_DIR}}
212- run : ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
213-
214-
215166 icx :
216167 name : ICX
217168 env :
0 commit comments