Add cmake build workflow. #2
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: build | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
- 'feature/**' | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
build: | |
name: cmake configure & build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ windows-latest, windows-2019 ] | |
include: | |
- vs_version: "Visual Studio 17 2022" | |
os: windows-latest | |
- vs_version: "Visual Studio 16 2019" | |
os: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Configure | |
run: cmake -B"${{ runner.workspace }}/b" -G"${{ matrix.vs_version }}" | |
- name: Build | |
run: cmake --build '${{ runner.workspace }}/b' |