@@ -9,6 +9,8 @@ permissions:
9
9
env :
10
10
# for installation testing - it should match with version set in CMake
11
11
UMF_VERSION : 0.1.0
12
+ BUILD_DIR : " ${{github.workspace}}/build"
13
+ INSTL_DIR : " ${{github.workspace}}/../install-dir"
12
14
13
15
jobs :
14
16
ubuntu-build :
67
69
shared_library : ' ON'
68
70
level_zero_provider : ' ON'
69
71
install_tbb : ' OFF'
70
- env :
71
- BUILD_DIR : " ${{github.workspace}}/build/"
72
- INSTL_DIR : " ${{github.workspace}}/../install-dir"
73
72
runs-on : ${{matrix.os}}
74
73
75
74
steps :
@@ -131,6 +130,9 @@ jobs:
131
130
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}}
132
131
ctest --output-on-failure --test-dir test
133
132
133
+ - name : Remove the installation directory
134
+ run : rm -rf ${{env.INSTL_DIR}}
135
+
134
136
- name : Test UMF installation and uninstallation
135
137
# The '--shared-library' parameter is added to the installation test when the UMF is built as a shared library
136
138
run : >
@@ -148,8 +150,6 @@ jobs:
148
150
name : Windows
149
151
env :
150
152
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"
151
- BUILD_DIR : " ${{github.workspace}}/build/"
152
- INSTL_DIR : " ${{github.workspace}}/../install-dir"
153
153
strategy :
154
154
matrix :
155
155
os : ['windows-2019', 'windows-2022']
@@ -185,7 +185,7 @@ jobs:
185
185
uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
186
186
with :
187
187
vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
188
- vcpkgDirectory : ${{github.workspace}}/build /vcpkg
188
+ vcpkgDirectory : ${{env.BUILD_DIR}} /vcpkg
189
189
vcpkgJsonGlob : ' **/vcpkg.json'
190
190
191
191
- name : Install dependencies
@@ -197,6 +197,7 @@ jobs:
197
197
cmake
198
198
-B ${{env.BUILD_DIR}}
199
199
${{matrix.toolset}}
200
+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
200
201
-DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
201
202
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
202
203
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
@@ -230,18 +231,16 @@ jobs:
230
231
231
232
- name : check /DEPENDENTLOADFLAG in umf.dll
232
233
if : ${{matrix.shared_library == 'ON' && matrix.compiler.cxx == 'cl'}}
233
- run : ${{github.workspace}}/.github/scripts/check_dll_flags.ps1 ${{github.workspace}}/build /bin/${{matrix.build_type}}/umf.dll
234
+ run : ${{github.workspace}}/.github/scripts/check_dll_flags.ps1 ${{env.BUILD_DIR}} /bin/${{matrix.build_type}}/umf.dll
234
235
shell : pwsh
235
236
236
237
- name : check /DEPENDENTLOADFLAG in umf_proxy.dll
237
238
if : ${{matrix.compiler.cxx == 'cl'}}
238
- run : ${{github.workspace}}/.github/scripts/check_dll_flags.ps1 ${{github.workspace}}/build /src/proxy_lib/${{matrix.build_type}}/umf_proxy.dll
239
+ run : ${{github.workspace}}/.github/scripts/check_dll_flags.ps1 ${{env.BUILD_DIR}} /src/proxy_lib/${{matrix.build_type}}/umf_proxy.dll
239
240
shell : pwsh
240
241
241
242
windows-dynamic_build_hwloc :
242
243
name : " Windows dynamic UMF + static hwloc"
243
- env :
244
- BUILD_DIR : " ${{github.workspace}}/build"
245
244
strategy :
246
245
matrix :
247
246
build_type : [Release]
@@ -256,6 +255,7 @@ jobs:
256
255
run : >
257
256
cmake
258
257
-B ${{env.BUILD_DIR}}
258
+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
259
259
-DUMF_BUILD_SHARED_LIBRARY=ON
260
260
-DUMF_BUILD_EXAMPLES=OFF
261
261
-DUMF_FORMAT_CODE_STYLE=OFF
@@ -276,13 +276,11 @@ jobs:
276
276
# we check umf.dll only here - note that the proxy library is disabled in
277
277
# this configuration
278
278
- name : check /DEPENDENTLOADFLAG in umf.dll
279
- run : ${{github.workspace}}/.github/scripts/check_dll_flags.ps1 ${{github.workspace}}/build /bin/${{matrix.build_type}}/umf.dll
279
+ run : ${{github.workspace}}/.github/scripts/check_dll_flags.ps1 ${{env.BUILD_DIR}} /bin/${{matrix.build_type}}/umf.dll
280
280
shell : pwsh
281
281
282
282
windows-static_build_hwloc :
283
283
name : " Windows static UMF + static hwloc"
284
- env :
285
- BUILD_DIR : " ${{github.workspace}}/build"
286
284
strategy :
287
285
matrix :
288
286
build_type : [Release]
@@ -297,6 +295,7 @@ jobs:
297
295
run : >
298
296
cmake
299
297
-B ${{env.BUILD_DIR}}
298
+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
300
299
-DUMF_BUILD_SHARED_LIBRARY=OFF
301
300
-DUMF_BUILD_EXAMPLES=OFF
302
301
-DUMF_FORMAT_CODE_STYLE=OFF
@@ -320,8 +319,6 @@ jobs:
320
319
matrix :
321
320
os : ['macos-12', 'macos-13']
322
321
env :
323
- BUILD_DIR : " ${{github.workspace}}/build/"
324
- INSTL_DIR : " ${{github.workspace}}/../install-dir"
325
322
BUILD_TYPE : " Release"
326
323
runs-on : ${{matrix.os}}
327
324
@@ -339,6 +336,7 @@ jobs:
339
336
run : >
340
337
cmake
341
338
-B ${{env.BUILD_DIR}}
339
+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
342
340
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
343
341
-DUMF_FORMAT_CODE_STYLE=OFF
344
342
-DUMF_DEVELOPER_MODE=ON
0 commit comments