@@ -332,6 +332,56 @@ jobs:
332332 -DUMF_TESTS_FAIL_ON_SKIP=ON
333333 -DUMF_LINK_HWLOC_STATICALLY=ON
334334
335+ - name : Build UMF
336+ run : cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j $Env:NUMBER_OF_PROCESSORS -v
337+
338+ - name : Run tests
339+ working-directory : ${{env.BUILD_DIR}}
340+ run : ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
341+
342+ windows-dynamic_mingw_hwloc :
343+ env :
344+ HWLOC_PACKAGE_NAME : hwloc-win64-build-2.10.0
345+ TBB_PACKAGE_NAME : oneapi-tbb-2021.12.0
346+ TBB_LIB_DIR : lib\intel64\vc14
347+ TBB_BIN_DIR : redist\intel64\vc14
348+
349+ name : " Windows dynamic UMF + mingw libhwloc"
350+ strategy :
351+ matrix :
352+ build_type : [Release]
353+
354+ runs-on : ' windows-2022'
355+
356+ steps :
357+ - name : Checkout
358+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
359+ with :
360+ fetch-depth : 0
361+
362+ - name : Get hwloc from official repo (mingw version)
363+ run : |
364+ Invoke-WebRequest -Uri https://download.open-mpi.org/release/hwloc/v2.10/${{env.HWLOC_PACKAGE_NAME}}.zip -OutFile ${{github.workspace}}\${{env.HWLOC_PACKAGE_NAME}}.zip -TimeoutSec 360
365+ Expand-Archive ${{github.workspace}}\${{env.HWLOC_PACKAGE_NAME}}.zip -DestinationPath ${{github.workspace}}
366+
367+ - name : Get TBB from github
368+ run : |
369+ Invoke-WebRequest -Uri https://github.com/oneapi-src/oneTBB/releases/download/v2021.12.0/${{env.TBB_PACKAGE_NAME}}-win.zip -OutFile "${{github.workspace}}\${{env.TBB_PACKAGE_NAME}}-win.zip" -TimeoutSec 360
370+ Expand-Archive "${{github.workspace}}\${{env.TBB_PACKAGE_NAME}}-win.zip" -DestinationPath ${{github.workspace}}
371+
372+ - name : Configure build
373+ run : >
374+ cmake
375+ -B ${{env.BUILD_DIR}}
376+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
377+ -DCMAKE_PREFIX_PATH="${{github.workspace}}\${{env.HWLOC_PACKAGE_NAME}};${{github.workspace}}\${{env.TBB_PACKAGE_NAME}};${{github.workspace}}\${{env.TBB_PACKAGE_NAME}}\${{env.TBB_LIB_DIR}};${{github.workspace}}\${{env.TBB_PACKAGE_NAME}}\${{env.TBB_BIN_DIR}}"
378+ -DUMF_BUILD_SHARED_LIBRARY=ON
379+ -DUMF_BUILD_EXAMPLES=ON
380+ -DUMF_FORMAT_CODE_STYLE=OFF
381+ -DUMF_DEVELOPER_MODE=ON
382+ -DUMF_TESTS_FAIL_ON_SKIP=ON
383+ -DUMF_HWLOC_NAME=libhwloc
384+
335385 - name : Build UMF
336386 run : cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j $Env:NUMBER_OF_PROCESSORS
337387
0 commit comments