@@ -348,6 +348,56 @@ jobs:
348
348
-DUMF_TESTS_FAIL_ON_SKIP=ON
349
349
-DUMF_LINK_HWLOC_STATICALLY=ON
350
350
351
+ - name : Build UMF
352
+ run : cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j $Env:NUMBER_OF_PROCESSORS -v
353
+
354
+ - name : Run tests
355
+ working-directory : ${{env.BUILD_DIR}}
356
+ run : ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
357
+
358
+ windows-dynamic_mingw_hwloc :
359
+ env :
360
+ HWLOC_PACKAGE_NAME : hwloc-win64-build-2.10.0
361
+ TBB_PACKAGE_NAME : oneapi-tbb-2021.12.0
362
+ TBB_LIB_DIR : lib\intel64\vc14
363
+ TBB_BIN_DIR : redist\intel64\vc14
364
+
365
+ name : " Windows dynamic UMF + mingw libhwloc"
366
+ strategy :
367
+ matrix :
368
+ build_type : [Release]
369
+
370
+ runs-on : ' windows-2022'
371
+
372
+ steps :
373
+ - name : Checkout
374
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
375
+ with :
376
+ fetch-depth : 0
377
+
378
+ - name : Get hwloc from official repo (mingw version)
379
+ run : |
380
+ 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
381
+ Expand-Archive ${{github.workspace}}\${{env.HWLOC_PACKAGE_NAME}}.zip -DestinationPath ${{github.workspace}}
382
+
383
+ - name : Get TBB from github
384
+ run : |
385
+ 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
386
+ Expand-Archive "${{github.workspace}}\${{env.TBB_PACKAGE_NAME}}-win.zip" -DestinationPath ${{github.workspace}}
387
+
388
+ - name : Configure build
389
+ run : >
390
+ cmake
391
+ -B ${{env.BUILD_DIR}}
392
+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
393
+ -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}}"
394
+ -DUMF_BUILD_SHARED_LIBRARY=ON
395
+ -DUMF_BUILD_EXAMPLES=ON
396
+ -DUMF_FORMAT_CODE_STYLE=OFF
397
+ -DUMF_DEVELOPER_MODE=ON
398
+ -DUMF_TESTS_FAIL_ON_SKIP=ON
399
+ -DUMF_HWLOC_NAME=libhwloc
400
+
351
401
- name : Build UMF
352
402
run : cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j $Env:NUMBER_OF_PROCESSORS
353
403
0 commit comments