Skip to content

Commit

Permalink
test installation via CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Jan 24, 2024
1 parent 8f6c548 commit 95a6fd4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ jobs:
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Install (Windows)
if: matrix.os == 'windows-latest'
run: Start-Process -Verb RunAs -FilePath cmake "--build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --target install"

- name: Install (sudo)
if: matrix.os != 'windows-latest'
run: sudo cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --target install

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest --build-config ${{ matrix.build_type }}

0 comments on commit 95a6fd4

Please sign in to comment.