Skip to content

Buildscripts/cmake uninstall target #1

Buildscripts/cmake uninstall target

Buildscripts/cmake uninstall target #1

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