Create install target #144
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: Centos 7 CI | |
on: | |
push: | |
branches: | |
- main | |
- feature/* | |
- features/* | |
- fix/* | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
strategy: | |
matrix: | |
buildtype: [Release,Debug] | |
include: | |
- system_build: OFF | |
runs-on: ubuntu-latest | |
container: 'centos:7' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install libraries | |
run: | | |
yum update -y | |
yum install -y git epel-release redhat-lsb-core autoconf automake libtool gtk2-devel gcc gcc-c++ make centos-release-scl scl-utils | |
yum install -y cmake3 devtoolset-7 | |
yum install -y rh-git227-git | |
- name: Configure and build | |
run: | | |
source /opt/rh/devtoolset-7/enable | |
#git 2.x must be enabled for Coin compilation with CMake ExternalProject_Add | |
source /opt/rh/rh-git227/enable | |
cmake3 -B _build -S . -DBUILD_not_system=ON -DBUILD_system=${{ matrix.system_build }} -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} -DDEPS_INSTALL_DIR=rte-antares-deps-${{ matrix.buildtype }} | |
- name: Archive upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: antares-deps-centos7-${{ matrix.buildtype }} | |
path: | | |
rte-antares-deps-${{ matrix.buildtype }} |