Skip to content

Commit

Permalink
ci: use install preset
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 8, 2024
1 parent ee888af commit 4269c6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
- run: >-
cmake
--preset multi
--install-prefix ${{ runner.temp }}
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
- run: cmake --build --preset debug
Expand All @@ -59,8 +58,9 @@ jobs:
cmake
-S example
-B example/build
-DCMAKE_PREFIX_PATH=${{ runner.temp }}
-DCMAKE_PREFIX_PATH=build/local
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
- name: build examples
run: cmake --build example/build
- name: Test examples
Expand All @@ -84,14 +84,15 @@ jobs:

- run: cmake --workflow --preset default

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

- name: configure examples
run: >-
cmake
-S example
-B example/build
-DCMAKE_PREFIX_PATH=${{ runner.temp }}
-DCMAKE_PREFIX_PATH=build/local
- name: build examples
run: cmake --build example/build
- name: Test examples
Expand Down
1 change: 1 addition & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{
"name": "default",
"binaryDir": "${sourceDir}/build",
"installDir": "${sourceDir}/build/local",
"cacheVariables": {
"CMAKE_COMPILE_WARNING_AS_ERROR": true
}
Expand Down

0 comments on commit 4269c6b

Please sign in to comment.