Skip to content

Commit 0a160b0

Browse files
committed
ci: use install preset
ci:oneapi: install default path ci:cmake_prefix_path must be absolute
1 parent ee888af commit 0a160b0

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
- run: >-
4444
cmake
4545
--preset multi
46-
--install-prefix ${{ runner.temp }}
4746
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
4847
4948
- run: cmake --build --preset debug
@@ -59,8 +58,9 @@ jobs:
5958
cmake
6059
-S example
6160
-B example/build
62-
-DCMAKE_PREFIX_PATH=${{ runner.temp }}
61+
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/build/local
6362
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
63+
6464
- name: build examples
6565
run: cmake --build example/build
6666
- name: Test examples
@@ -84,14 +84,16 @@ jobs:
8484

8585
- run: cmake --workflow --preset default
8686

87-
- run: cmake --install build --prefix ${{ runner.temp }}
87+
- run: cmake --install build
8888

8989
- name: configure examples
9090
run: >-
9191
cmake
9292
-S example
9393
-B example/build
94-
-DCMAKE_PREFIX_PATH=${{ runner.temp }}
94+
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/build/local
95+
96+
9597
- name: build examples
9698
run: cmake --build example/build
9799
- name: Test examples

.github/workflows/oneapi-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ jobs:
5656
run: cat build/CMakeFiles/CMakeConfigureLog.yaml
5757

5858
- name: install package
59-
run: cmake --install build --prefix ${{ runner.temp }}
59+
run: cmake --install build -
6060

6161
- name: configure examples
6262
run: >-
6363
cmake
6464
-S example
6565
-B example/build
66-
-DCMAKE_PREFIX_PATH:PATH=${{ runner.temp }}
66+
-DCMAKE_PREFIX_PATH:PATH=${{ github.workspace }}/build/local
6767
6868
# BUILD_SHARED_LIBS=false since as with any C++ / Fortran program with Intel compiler,
6969
# need to have GCC environment carefully set

CMakePresets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{
66
"name": "default",
77
"binaryDir": "${sourceDir}/build",
8+
"installDir": "${sourceDir}/build/local",
89
"cacheVariables": {
910
"CMAKE_COMPILE_WARNING_AS_ERROR": true
1011
}

0 commit comments

Comments
 (0)