From 266b45e62d41e43a307a2f253f1fbf88b541fc97 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 29 Dec 2019 15:33:11 -0500 Subject: [PATCH] use github actions for CI use github actions for some simple build tests: - ubuntu 18: MPI, gcc, p4est and deal.II - OSX minimal: clang, serial, just deal.II - OSX parallel: gcc9, MPI, p4est and deal.II --- .github/workflows/main.yml | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..346dbe8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,61 @@ +name: CI + +on: [push, pull_request] + +jobs: + ubuntu18-minimal: + name: ubuntu 18.04 minimal build + runs-on: [ubuntu-18.04] + + steps: + - uses: actions/checkout@v1 + - name: setup + run: | + sudo apt-get install gfortran libopenmpi-dev openmpi-common openmpi-bin libblas-dev liblapack-dev libblas3 liblapack3 + - name: info + run: | + g++ -v + mpic++ -v + cmake --version + - name: build + run: | + ./candi.sh -j 2 --packages="once:p4est dealii" + cd ~/deal.ii-candi/tmp/build/deal.II-* && make test + + osx-minimal: + name: OSX minimal build + runs-on: [macos-latest] + + steps: + - uses: actions/checkout@v1 + - name: info + run: | + g++ -v + cmake --version + - name: build + run: | + echo 'DEAL_CONFOPTS="-D DEAL_II_WITH_MPI=OFF"' >> candi.cfg + ./candi.sh -j 2 --packages="dealii" + cd ~/deal.ii-candi/tmp/build/deal.II-* && make test + + osx-parallel: + name: OSX parallel build + runs-on: [macos-latest] + + steps: + - uses: actions/checkout@v1 + - name: setup + run: | + brew install openmpi + - name: info + run: | + export OMPI_CXX=g++-9 + mpicxx -v + cmake --version + - name: build + run: | + export OMPI_CXX=g++-9 + export OMPI_CC=gcc-9 + export OMPI_FC=gfortran-9 + ./candi.sh -j 2 --packages="once:p4est dealii" + cd ~/deal.ii-candi/tmp/build/deal.II-* && make test -- 2.39.5