Skip to content

Add a meson build system #190

Add a meson build system

Add a meson build system #190

Workflow file for this run

name: 'Linux Tests'
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
workflow_dispatch:
jobs:
linux-tests:
strategy:
matrix:
gcc_ver: [9, 10, 11]
name: 'Linux (gcc-${{ matrix.gcc_ver }})'
runs-on: ubuntu-latest
env:
# Set environ for OpenMP
OMP_CANCELLATION: true
OMP_PROC_BIND: true
OMP_NUM_THREADS: 4
steps:
- name: 'Install dependencies'
run: |
sudo apt-get update
sudo apt-get install gcc-${{ matrix.gcc_ver }} \
gfortran-${{ matrix.gcc_ver }} \
g++-${{ matrix.gcc_ver }} \
libmetis-dev \
libatlas-base-dev \
liblapack-dev
- name: 'Checkout code'
uses: actions/checkout@v2
- name: 'Build'
run: |
./autogen.sh
./configure CC=gcc-${{ matrix.gcc_ver }} \
CXX=g++-${{ matrix.gcc_ver }} \
F77=gfortran-${{ matrix.gcc_ver }} \
FC=gfortran-${{ matrix.gcc_ver }} \
CFLAGS="-g -O2 -Wall" \
CXXFLAGS="-g -O2 -Wall" \
FCFLAGS="-g -O2 -Wall -pedantic"
make
- name: 'Test'
run: |
make check