Merge branch 'asar_19' into asar_2_beta #306
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: | |
branches: [ master, asar_19, asar_2_beta ] | |
paths-ignore: | |
- 'docs/**' | |
- 'ext/**' | |
pull_request: | |
branches: [ master, asar_19, asar_2_beta ] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
strategy: | |
matrix: | |
config: ['windows-msvc-2019'] | |
os: ['windows-2019'] | |
generator: ['-G "Visual Studio 16 2019"'] | |
toolset: ['-T v142'] | |
include: | |
- config: ubuntu-20 | |
os: ubuntu-20.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure CMake | |
run: cmake -S ${{github.workspace}}/src -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{ matrix.generator }} ${{ matrix.toolset }} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Tests | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target run-tests |