Skip to content

Update actions/checkout action to v6 #44

Update actions/checkout action to v6

Update actions/checkout action to v6 #44

Workflow file for this run

name: CMake
on: [push, pull_request, fork]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
- os: windows-latest
- os: macos-latest
steps:
- uses: actions/checkout@v6
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure CMake
working-directory: build
run: cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
working-directory: build
run: cmake --build . --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: build
run: |
ctest -C ${{env.BUILD_TYPE}} --output-on-failure
git diff --exit-code