Skip to content
Snippets Groups Projects
Commit a10e15a7 authored by Tomas Vybiral's avatar Tomas Vybiral
Browse files

removed not needed CI configurations

parent 4d27bef4
No related branches found
No related tags found
No related merge requests found
# These are supported funding model platforms
github: lefticus
patreon: lefticus
name: CMake
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Install conan
shell: bash
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install conan
source ~/.profile
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{runner.workspace}}/build
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
#
# We need to source the profile file to make sure conan is in PATH
run: |
source ~/.profile
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE
\ No newline at end of file
language: cpp
install:
# Pip cannot install Conan without these upgrades
- python3 -m pip install --upgrade pip setuptools
# Install Conan and CMake >= 3.15
- python3 -m pip install conan cmake
# Fail if we can't run Conan.
- conan --version
jobs:
include:
- os: osx
compiler: gcc
osx_image: xcode11.2 # includes gcc-9 by default
env:
- GCC_VER="9"
- MATRIX_EVAL="CC=gcc-${GCC_VER} && CXX=g++-${GCC_VER}"
- os: osx
compiler: clang
osx_image: xcode11.2
env:
- MATRIX_EVAL=""
- os: linux
dist: bionic
compiler: gcc
env:
- GCC_VER="9"
- MATRIX_EVAL="CC=gcc-${GCC_VER} && CXX=g++-${GCC_VER}"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# I couldn't get ${GCC_VER} in here successfully
- gcc-9
- g++-9
- doxygen
- python3-pip
after_script:
- bash <(curl -s https://codecov.io/bash) -x /usr/bin/gcov-${GCC_VER}
- os: linux
dist: bionic
compiler: clang
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
addons: { apt: { packages: ['doxygen', 'python3-pip'] } }
before_script:
- eval "${MATRIX_EVAL}"
script:
- mkdir build
- cd build
- cmake -D ENABLE_COVERAGE:BOOL=TRUE ../
- cmake --build . -- -j2
- ctest -j2
image:
- Visual Studio 2019
clone_folder: c:\projects\source
environment:
PYTHON: "C:\\Python38-x64\\python.exe"
build_script:
- cmd: >-
mkdir build
cd build
set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\Python\Python38\Scripts
"%PYTHON%" -m pip install --user conan
cmake c:\projects\source -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build . --config "Release"
test_script:
- cmd: ctest -C Debug
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment