Skip to content

CMake support

CMake support #1

Workflow file for this run

name: CMake Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: lukka/get-cmake@latest
with:
cmakeVersion: latest
ninjaVersion: latest
- name: Build Summary ${{ matrix.targets }}
run: cmake -B build -DCMAKE_BUILD_TYPE=Release; cmake --build build --parallel
# mingw:
# runs-on: windows-latest
# strategy:
# fail-fast: false
# matrix:
# include: [{ msystem: CLANG64, arch: x86_64, prefix: /clang64 }, { msystem: CLANG32, arch: i686, prefix: /clang32 }]
# steps:
# - uses: actions/checkout@v3
# with:
# path: temp
# submodules: recursive
# fetch-depth: 0
# - uses: msys2/setup-msys2@v2
# with:
# msystem: ${{ matrix.msystem }}
# path-type: inherit
# location: D:\
# install: git mingw-w64-clang-${{ matrix.arch }}-cmake mingw-w64-clang-${{ matrix.arch }}-openssl mingw-w64-clang-${{ matrix.arch }}-winpthreads-git mingw-w64-clang-${{ matrix.arch }}-headers
# update: true
# - name: Move Checkout
# run: |
# Copy-Item -Path ".\temp" -Destination "C:\_" -Recurse
# - name: Build Summary - ${{ matrix.arch }}
# shell: msys2 {0}
# run: |
# cd /C/_
# cmake -B build -DCMAKE_BUILD_TYPE=Release; cmake --build build --config release --parallel