Skip to content

Commit

Permalink
ci: Test cmake_minimum_required
Browse files Browse the repository at this point in the history
Ensures project configures with 3.13 since it's very easy to
write code that doesn't respect the minimum.
  • Loading branch information
juan-lunarg committed Jun 21, 2023
1 parent 6ab2631 commit 34939d0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Note: CMake support is community-based. The maintainers do not use CMake
# internally.

name: cmake

on:
push:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
cmake_min:
runs-on: ubuntu-latest
strategy:
matrix:
config: ["Debug", "Release"]
steps:
- uses: actions/checkout@v3
- uses: lukka/get-cmake@latest
with:
cmakeVersion: 3.13.0
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }} -G "Ninja"
- name: Build
run: cmake --build build --config ${{ matrix.config }}

0 comments on commit 34939d0

Please sign in to comment.