Skip to content

Simplify GitHub Actions workflow test job configuration #24

Simplify GitHub Actions workflow test job configuration

Simplify GitHub Actions workflow test job configuration #24

Workflow file for this run

name: Deploy
on: push
jobs:
deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-13, windows-2022]
steps:
- uses: actions/checkout@v4
- 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@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
${{github.workspace}}/build/package/*