Merge pull request #147 from MarkGillespie/MMPGradients #157
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: linux | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-18.04, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: true | |
- name: set_gcc_version | |
if: matrix.os == 'ubuntu-18.04' | |
run: | | |
sudo apt install software-properties-common | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt install gcc-5 g++-5 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 90 --slave /usr/bin/g++ g++ /usr/bin/g++-5 --slave /usr/bin/gcov gcov /usr/bin/gcov-5 | |
- name: configure | |
run: cd test && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. | |
- name: build | |
run: cd test/build && make | |
- name: run test | |
run: cd test/build && ./bin/geometry-central-test |