diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000000..8158e68729 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -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 }}