]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
Clean up precice-ci.yml
authorPeter Munch <peterrmuench@gmail.com>
Tue, 4 Jan 2022 10:30:48 +0000 (11:30 +0100)
committerMarc Fehling <mafehling.git@gmail.com>
Sat, 8 Apr 2023 03:08:02 +0000 (21:08 -0600)
.github/workflows/precice-ci.yml

index 2cbd7c548dc602a03685dd49bbda40f86e494a90..816c7b321c98a1c7a6500f9464489c1dcb0cb4ed 100644 (file)
@@ -5,31 +5,42 @@ on:
     branches: [ master ]
   pull_request:
     branches: [ master ]
+  schedule:
+  - cron:  '0 0 * * 0'
 
 jobs:
   build:
-
+    name: Build ${{ matrix.build_type }}-dealii:${{ matrix.dealii_version }}
     runs-on: ubuntu-latest
 
+    strategy:
+      fail-fast: false
+      matrix:
+        build_type: ["Debug"]
+        dealii_version: ["master", "v9.4.0"]
+
+    container:
+      image: dealii/dealii:${{ matrix.dealii_version }}-focal
+
     steps:
-    - uses: actions/checkout@v2
-    - name: setup
-      run: |
-         command="sudo apt-get -y update && \
-                  wget https://github.com/precice/precice/releases/download/v2.1.1/libprecice2_2.1.1_focal.deb && \
-                  sudo apt-get -y install ./libprecice2_2.1.1_focal.deb && \
-                  git clone https://github.com/${{ github.repository }} && \
-                  cd code-gallery && \
-                  git fetch origin ${{ github.ref }} && \
-                  git checkout FETCH_HEAD && \
-                  cd coupled_laplace_problem && \
-                  cmake . && \
-                  make && \
-                  (./coupled_laplace_problem 2>&1 & ./fancy_boundary_condition >fbc.log) && \
-                  sed -i '2d' solution-10.vtk && \
-                  numdiff solution-10.vtk test_data/reference-10.vtk";
-         
-         echo $command
-         
-         docker pull dealii/dealii:v9.4.0-focal
-         docker run -t dealii/dealii:v9.4.0-focal /bin/sh -c "$command";
+      - name: Setup
+        run: |
+          sudo chown -R $USER:$USER $GITHUB_WORKSPACE
+          
+      - uses: actions/checkout@v2
+
+      - name: Compile
+        run: |
+          sudo apt-get -y update
+          wget https://github.com/precice/precice/releases/download/v2.1.1/libprecice2_2.1.1_focal.deb
+          sudo apt-get -y install ./libprecice2_2.1.1_focal.deb
+          cd coupled_laplace_problem
+          cmake .
+          make
+
+      - name: Test
+        run: |
+          cd coupled_laplace_problem
+          (./coupled_laplace_problem 2>&1 & ./fancy_boundary_condition >fbc.log)
+          sed -i '2d' solution-10.vtk
+          numdiff solution-10.vtk test_data/reference-10.vtk

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.