Skip to content

Change cmake minimum version to 3.5 (#156) #23

Change cmake minimum version to 3.5 (#156)

Change cmake minimum version to 3.5 (#156) #23

Workflow file for this run

name: Main CI
on:
push:
branches: [main]
jobs:
linux:
strategy:
fail-fast: false
matrix:
image:
# List: https://github.com/conan-io/conan-docker-tools
- gcc10
- gcc9
- gcc8
- gcc7
- gcc6
- gcc5
- gcc49
- clang10
- clang9
- clang8
- clang7
- clang60
- clang50
- clang40
build_type: [Debug, Release]
runs-on: ubuntu-latest
container:
image: conanio/${{matrix.image}}
options: --user root
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure
working-directory: build/
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
- name: Build
working-directory: build/
run: cmake --build . --config ${{matrix.build_type}}
- name: Test
working-directory: build/
run: ctest -C ${{matrix.build_type}} --output-on-failure
macos:
strategy:
fail-fast: false
matrix:
xcode:
- '11'
- '12'
- '13'
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{matrix.xcode}}
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure
working-directory: build/
run: cmake $GITHUB_WORKSPACE
- name: Build
working-directory: build/
run: cmake --build .
- name: Test
working-directory: build/
run: ctest --output-on-failure
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure
shell: bash
working-directory: build/
run: cmake $GITHUB_WORKSPACE -G"Visual Studio 16 2019"
- name: Build
working-directory: build/
run: cmake --build . --config Debug -j 2
- name: Test
working-directory: build/
run: ctest -C Debug --output-on-failure