Buildscripts/cmake uninstall target #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CMake Install & Uninstall | |
on: | |
push: | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
strategy: | |
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure CMake | |
run: | | |
cmake -S . -B .build -DCMAKE_BUILD_TYPE=Release | |
- name: Build CMake | |
run: | | |
cmake --build .build --config Release | |
- name: Install | |
run: | | |
cmake --install .build --prefix .install | |
- name: Uninstall | |
run: | | |
cmake --build .build --target uninstall |