Add nightly build of centos7 (#6355)

This commit is contained in:
Magne Sjaastad
2020-08-24 15:38:51 +02:00
committed by GitHub
parent 1f2f1bf14e
commit 2a9082360c

80
.github/workflows/centos7.yml vendored Normal file
View File

@@ -0,0 +1,80 @@
name: centOS 7 (without geomech)
on:
schedule:
# Once every night
- cron: '0 1 * * * '
jobs:
build_on_centos7:
runs-on: ubuntu-latest
container:
image: centos:7
steps:
- name: Intall Dependencies
run: |
yum install -y centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install -y https://repo.ius.io/ius-release-el7.rpm
yum install -y git222
yum install -y qt5-qtbase
yum install -y qt5-qtbase-devel
yum install -y qt5-qtscript-devel
yum install -y cmake3
yum install -y make
yum install -y mesa-libGL-devel
yum install -y freeglut-devel
yum install -y devtoolset-7
yum install -y rh-python36
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Build ResInsight
run: |
source /opt/rh/devtoolset-7/enable
source /opt/rh/rh-python36/enable
cmake3 --version
git --version
g++ --version
python --version
python -m pip install --upgrade pip
python -m pip install grpcio-tools
vcpkg/bootstrap-vcpkg.sh
vcpkg/vcpkg install grpc
mkdir cmakebuild
cd cmakebuild
cmake3 \
-DRESINSIGHT_QT5_BUNDLE_LIBRARIES=ON \
-DRESINSIGHT_ENABLE_GRPC=true \
-DRESINSIGHT_ENABLE_UNITY_BUILD=true \
-DVCPKG_TARGET_TRIPLET=x64-linux \
-DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake \
-DRESINSIGHT_GRPC_PYTHON_EXECUTABLE=python \
..
make -j8
make package
rm -rf packages/_CPack_Packages
# Show file structure
pwd
ls
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ResInsight
path: ./cmakebuild/packages