update changelog #680
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CMake | |
on: [push, pull_request] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-12, windows-2019 ] | |
cmake_generator: [ default, Ninja ] | |
fail-fast: false | |
name: ${{ matrix.os }} build with ${{ matrix.cmake_generator }} cmake generator | |
steps: | |
- name: Install X | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt update && sudo apt install -y libgl1-mesa-dev xorg-dev libasound2-dev | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Setting up Ninja build system | |
if: matrix.cmake_generator == 'Ninja' | |
uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Set up MSVC compiler | |
if: matrix.os == 'windows-2019' | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Configure CMake with ${{ matrix.cmake_generator }} | |
if: matrix.cmake_generator != 'default' | |
run: cmake -G ${{ matrix.cmake_generator }} -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Configure CMake with default generator | |
if: matrix.cmake_generator == 'default' | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 3 | |
- name: Pack | |
working-directory: ${{github.workspace}}/build | |
run: cmake -P ${{github.workspace}}/scripts/pack.cmake |