Skip to content

test Gurobi v12 on Linux #59

test Gurobi v12 on Linux

test Gurobi v12 on Linux #59

##############################################################################
# GitHub Actions Workflow to test building PolyFit with GCC
#
# Copyright (C) 2022 Liangliang Nan <liangliang.nan@gmail.com>
#
# Licensed under GNU LGPL.3, see LICENCE file
##############################################################################
name: test-build-gcc
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.compilers }}
strategy:
fail-fast: false
matrix:
compilers: [g++-7, g++-8, g++-9, g++-10, g++-11]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Install GCC
run: |
sudo apt-get update || true
if [ "${{ matrix.compilers }}" == "g++-11" ]; then
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update
fi
sudo apt-get install ${{ matrix.compilers }}
- name: Install Dependencies
run: |
sudo apt-get install build-essential libglu1-mesa-dev mesa-common-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libboost-all-dev libcgal-dev qt5-default
- name: Build Project
run: |
rm -rf Release
mkdir Release
cd Release
if [ "${{ matrix.compilers }}" == "g++-11" ]; then
cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-11 -DCMAKE_BUILD_TYPE=Release ..
else
cmake -DCMAKE_CXX_COMPILER=${{ matrix.compilers }} -DCMAKE_BUILD_TYPE=Release ..
fi
make