ci: build CMake project on GitHub actions

This commit is contained in:
Anonymous Maarten 2026-06-15 11:25:14 +02:00 committed by Peter Johnson
parent 9361f783cf
commit 7b15cffe2d

View file

@ -14,10 +14,15 @@ jobs:
os: macos-latest
artifact: true
autotools: true
cmake: true
- name: Ubuntu
os: ubuntu-latest
artifact: true
autotools: true
cmake: true
- name: MSVC
os: windows-latest
cmake: true
name: "Build - ${{ matrix.name }}"
runs-on: ${{ matrix.os }}
@ -44,6 +49,13 @@ jobs:
if: ${{ matrix.autotools }}
run: make dist
- name: Configure (CMake)
if: ${{ matrix.cmake }}
run: cmake -S . -B build
- name: Build (CMake)
if: ${{ matrix.cmake }}
run: cmake --build build
- uses: actions/upload-artifact@v7
if: ${{ matrix.artifact && always() && steps.make-dist.outcome == 'success' }}
with: