1414jobs :
1515 ubuntu-build :
1616 name : Linux
17- runs-on : ubuntu-latest
17+ runs-on : ${{ github.repository_owner == 'oneapi-src' && 'intel- ubuntu-22.04' || 'ubuntu-22.04' }}
1818 container :
1919 image : ${{ matrix.image }}
2020 options : --user root --privileged
2121 volumes :
22- - /home/runner/work/unified-memory-framework/unified-memory-framework:/home/runner/work/unified-memory-framework/unified-memory-framework
23-
24- env :
25- 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"
22+ - ${{ github.workspace }}:${{ github.workspace }}
2623 strategy :
2724 matrix :
2825 include :
2926 - image : ghcr.io/rbanka1/umf-ubuntu-22.04:latest
3027 build_tests : ' ON'
31- extra_build_options : ' -DCMAKE_BUILD_TYPE=Release -DUMF_BUILD_BENCHMARKS=ON -DUMF_BUILD_BENCHMARKS_MT=ON'
28+ extra_build_options : ' -DUMF_BUILD_BENCHMARKS=ON -DUMF_BUILD_BENCHMARKS_MT=ON'
3229 simple_cmake : ' OFF'
30+ # pure C build
3331 - image : ghcr.io/rbanka1/umf-ubuntu-22.04:latest
3432 build_tests : ' OFF'
35- extra_build_options : ' -DCMAKE_BUILD_TYPE=Release - DUMF_BUILD_BENCHMARKS=ON'
33+ extra_build_options : ' -DUMF_BUILD_BENCHMARKS=ON'
3634 simple_cmake : ' OFF'
35+ # simplest CMake on ubuntu-latest
3736 - image : ghcr.io/rbanka1/umf-ubuntu-22.04:latest
3837 build_tests : ' ON'
39- extra_build_options : ' -DCMAKE_BUILD_TYPE=Release'
4038 simple_cmake : ' ON'
4139 - image : ghcr.io/rbanka1/umf-ubuntu-20.04:latest
4240 build_tests : ' ON'
43- extra_build_options : ' -DCMAKE_BUILD_TYPE=Release'
4441 simple_cmake : ' ON'
4542
4643 steps :
5451 run : >
5552 cmake
5653 -B ${{env.BUILD_DIR}}
57- -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
58- -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
54+ -DCMAKE_BUILD_TYPE=Release
5955 -DUMF_FORMAT_CODE_STYLE=OFF
6056 -DUMF_DEVELOPER_MODE=ON
61- -DUMF_BUILD_LIBUMF_POOL_DISJOINT=${{matrix.disjoint}}
6257 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
6358 -DUMF_BUILD_TESTS=${{matrix.build_tests}}
6459 -DUMF_BUILD_EXAMPLES=ON
@@ -73,13 +68,12 @@ jobs:
7368 run : >
7469 cmake
7570 -B ${{env.BUILD_DIR}}
76- -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
7771 -DUMF_BUILD_SHARED_LIBRARY=ON
7872 -DUMF_TESTS_FAIL_ON_SKIP=ON
7973 ${{matrix.extra_build_options}}
8074
8175 - name : Build
82- run : cmake --build ${{env.BUILD_DIR}} --config Release -j
76+ run : cmake --build ${{env.BUILD_DIR}} --config Release -j $(nproc)
8377
8478 - name : Run examples
8579 working-directory : ${{env.BUILD_DIR}}
@@ -99,14 +93,12 @@ jobs:
9993 strategy :
10094 matrix :
10195 include :
102- - os : windows-latest
103- disjoint : ' OFF'
104- build_tests : ' ON'
96+ - build_tests : ' ON'
10597 simple_cmake : ' OFF'
106- - os : windows-latest
107- disjoint : ' OFF'
108- build_tests : ' OFF'
98+ - build_tests : ' OFF'
10999 simple_cmake : ' OFF'
100+ # - build_tests: 'OFF'
101+ # simple_cmake: 'ON'
110102
111103 steps :
112104 - name : Checkout repository
@@ -121,7 +113,7 @@ jobs:
121113 vcpkgDirectory : ${{env.BUILD_DIR}}/vcpkg
122114 vcpkgJsonGlob : ' **/vcpkg.json'
123115
124- - name : Install dependencies (windows-latest)
116+ - name : Install dependencies
125117 run : vcpkg install
126118 shell : pwsh
127119
@@ -134,15 +126,13 @@ jobs:
134126 -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
135127 -DUMF_FORMAT_CODE_STYLE=OFF
136128 -DUMF_DEVELOPER_MODE=ON
137- -DUMF_BUILD_LIBUMF_POOL_DISJOINT=${{matrix.disjoint}}
138129 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
139130 -DUMF_BUILD_TESTS=${{matrix.build_tests}}
140131 -DUMF_BUILD_EXAMPLES=ON
141132 -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON
142133 -DUMF_BUILD_CUDA_PROVIDER=ON
143134 -DUMF_TESTS_FAIL_ON_SKIP=ON
144135 -DUMF_BUILD_SHARED_LIBRARY=ON
145- ${{matrix.extra_build_options}}
146136
147137 - name : Configure CMake (simple)
148138 if : matrix.simple_cmake == 'ON'
@@ -152,7 +142,6 @@ jobs:
152142 -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
153143 -DUMF_BUILD_SHARED_LIBRARY=ON
154144 -DUMF_TESTS_FAIL_ON_SKIP=ON
155- ${{matrix.extra_build_options}}
156145
157146 - name : Build
158147 run : cmake --build ${{env.BUILD_DIR}} --config Release -j
@@ -170,7 +159,6 @@ jobs:
170159 # ref. https://superuser.com/questions/381276/what-are-some-nice-command-line-ways-to-inspect-dll-exe-details
171160
172161 - name : Print metadata of our dll's
173- if : matrix.os == 'windows-latest'
174162 run : |
175163 get-command ${{github.workspace}}/build/bin/Release/umf.dll | format-list
176164 get-command ${{github.workspace}}/build/src/proxy_lib/Release/umf_proxy.dll | format-list
0 commit comments