Skip to content

Update OS matrix and checkout version in test workflow #11

Update OS matrix and checkout version in test workflow

Update OS matrix and checkout version in test workflow #11

Workflow file for this run

name: Deploy
on: push
jobs:
deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-12, windows-2022]
steps:
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DENABLE_ALL_WARNINGS=ON
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config Release
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C Release --rerun-failed --output-on-failure
- name: CPack
working-directory: ${{github.workspace}}/build
run: cpack
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
${{github.workspace}}/build/package/*