]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
CI now covers compilation of all projects. 142/head
authorMarc Fehling <mafehling.git@gmail.com>
Sun, 23 Apr 2023 01:11:59 +0000 (19:11 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Sun, 23 Apr 2023 04:05:55 +0000 (22:05 -0600)
.github/workflows/linux.yml [moved from .github/workflows/precice-ci.yml with 53% similarity]

similarity index 53%
rename from .github/workflows/precice-ci.yml
rename to .github/workflows/linux.yml
index 7de40449f5980199bd47e31344374d99facda5b6..2c9147d7a30185afb6c7d5b3f72244ea998e3118 100644 (file)
@@ -1,4 +1,4 @@
-name: PreCICE CI
+name: github-linux
 
 on:
   push:
@@ -29,21 +29,44 @@ jobs:
       options: --user root
 
     steps:
+      - name: Install dependencies from repository
+        run: |
+          apt-get -y update
+          apt-get -y install libarmadillo-dev libconfig++-dev
+
       - name: Install preCICE
         run: |
-          sudo apt-get -y update
-          wget https://github.com/precice/precice/releases/download/v2.5.0/libprecice2_2.5.0_${{ matrix.ubuntu_version }}.deb
-          sudo apt-get -y install ./libprecice2_2.5.0_${{ matrix.ubuntu_version }}.deb
+          wget -O libprecice.deb https://github.com/precice/precice/releases/download/v2.5.0/libprecice2_2.5.0_${{ matrix.ubuntu_version }}.deb
+          apt-get -y install ./libprecice.deb
+
+      - name: Install XBraid
+        run: |
+          wget -O xbraid.tar.gz https://github.com/XBraid/xbraid/archive/refs/tags/v3.1.0.tar.gz
+          mkdir /opt/xbraid
+          tar xf xbraid.tar.gz -C /opt/xbraid --strip-components 1
+          cd /opt/xbraid/braid
+          make
+          echo "BRAID_DIR=${PWD}" >> $GITHUB_ENV
 
       - uses: actions/checkout@v3
 
-      - name: Compile
+      - name: Compile all projects
         run: |
-          cd coupled_laplace_problem
-          cmake .
-          make
+          for dir in */
+          do
+            cd ${dir}
+            if [ -e CMakeLists.txt ]
+            then
+              echo "Current project: ${dir}"
+              cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .
+              make
+            else
+              echo "Skipping project: ${dir}"
+            fi
+            cd ..
+          done
 
-      - name: Test
+      - name: Test coupled_laplace_problem
         run: |
           cd coupled_laplace_problem
           (./coupled_laplace_problem 2>&1 & ./fancy_boundary_condition >fbc.log)

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.