]> https://gitweb.dealii.org/ - candi.git/commitdiff
use github actions for CI 132/head
authorTimo Heister <timo.heister@gmail.com>
Sun, 29 Dec 2019 20:33:11 +0000 (15:33 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 9 Jan 2020 18:27:14 +0000 (13:27 -0500)
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 [new file with mode: 0644]

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644 (file)
index 0000000..346dbe8
--- /dev/null
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.