@@ -9,6 +9,8 @@ permissions:
99env :
1010 # for installation testing - it should match with version set in CMake
1111 UMF_VERSION : 0.1.0
12+ BUILD_DIR : " ${{github.workspace}}/build"
13+ INSTL_DIR : " ${{github.workspace}}/../install-dir"
1214
1315jobs :
1416 ubuntu-build :
6769 shared_library : ' ON'
6870 level_zero_provider : ' ON'
6971 install_tbb : ' OFF'
70- env :
71- BUILD_DIR : " ${{github.workspace}}/build/"
72- INSTL_DIR : " ${{github.workspace}}/../install-dir"
7372 runs-on : ${{matrix.os}}
7473
7574 steps :
@@ -131,6 +130,9 @@ jobs:
131130 ${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}}
132131 ctest --output-on-failure --test-dir test
133132
133+ - name : Remove the installation directory
134+ run : rm -rf ${{env.INSTL_DIR}}
135+
134136 - name : Test UMF installation and uninstallation
135137 # The '--shared-library' parameter is added to the installation test when the UMF is built as a shared library
136138 run : >
@@ -148,8 +150,6 @@ jobs:
148150 name : Windows
149151 env :
150152 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"
153153 strategy :
154154 matrix :
155155 os : ['windows-2019', 'windows-2022']
@@ -185,7 +185,7 @@ jobs:
185185 uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
186186 with :
187187 vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
188- vcpkgDirectory : ${{github.workspace}}/build /vcpkg
188+ vcpkgDirectory : ${{env.BUILD_DIR}} /vcpkg
189189 vcpkgJsonGlob : ' **/vcpkg.json'
190190
191191 - name : Install dependencies
@@ -197,6 +197,7 @@ jobs:
197197 cmake
198198 -B ${{env.BUILD_DIR}}
199199 ${{matrix.toolset}}
200+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
200201 -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
201202 -DCMAKE_C_COMPILER=${{matrix.compiler.c}}
202203 -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
@@ -230,18 +231,16 @@ jobs:
230231
231232 - name : check /DEPENDENTLOADFLAG in umf.dll
232233 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
234235 shell : pwsh
235236
236237 - name : check /DEPENDENTLOADFLAG in umf_proxy.dll
237238 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
239240 shell : pwsh
240241
241242 windows-dynamic_build_hwloc :
242243 name : " Windows dynamic UMF + static hwloc"
243- env :
244- BUILD_DIR : " ${{github.workspace}}/build"
245244 strategy :
246245 matrix :
247246 build_type : [Release]
@@ -256,6 +255,7 @@ jobs:
256255 run : >
257256 cmake
258257 -B ${{env.BUILD_DIR}}
258+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
259259 -DUMF_BUILD_SHARED_LIBRARY=ON
260260 -DUMF_BUILD_EXAMPLES=OFF
261261 -DUMF_FORMAT_CODE_STYLE=OFF
@@ -276,13 +276,11 @@ jobs:
276276 # we check umf.dll only here - note that the proxy library is disabled in
277277 # this configuration
278278 - 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
280280 shell : pwsh
281281
282282 windows-static_build_hwloc :
283283 name : " Windows static UMF + static hwloc"
284- env :
285- BUILD_DIR : " ${{github.workspace}}/build"
286284 strategy :
287285 matrix :
288286 build_type : [Release]
@@ -297,6 +295,7 @@ jobs:
297295 run : >
298296 cmake
299297 -B ${{env.BUILD_DIR}}
298+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
300299 -DUMF_BUILD_SHARED_LIBRARY=OFF
301300 -DUMF_BUILD_EXAMPLES=OFF
302301 -DUMF_FORMAT_CODE_STYLE=OFF
@@ -320,8 +319,6 @@ jobs:
320319 matrix :
321320 os : ['macos-12', 'macos-13']
322321 env :
323- BUILD_DIR : " ${{github.workspace}}/build/"
324- INSTL_DIR : " ${{github.workspace}}/../install-dir"
325322 BUILD_TYPE : " Release"
326323 runs-on : ${{matrix.os}}
327324
@@ -339,6 +336,7 @@ jobs:
339336 run : >
340337 cmake
341338 -B ${{env.BUILD_DIR}}
339+ -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
342340 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
343341 -DUMF_FORMAT_CODE_STYLE=OFF
344342 -DUMF_DEVELOPER_MODE=ON
0 commit comments