From 4ed9578efe2560b8036b5ec65fe8ddddba7604b6 Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Sun, 24 Jul 2022 17:18:53 +0000
Subject: [PATCH] feat: test lcg overlap check

---
 .github/workflows/linux-lcg.yml | 33 +++++++++++----------------------
 1 file changed, 11 insertions(+), 22 deletions(-)

diff --git a/.github/workflows/linux-lcg.yml b/.github/workflows/linux-lcg.yml
index 73a8ccc..d2044a2 100644
--- a/.github/workflows/linux-lcg.yml
+++ b/.github/workflows/linux-lcg.yml
@@ -3,13 +3,12 @@ name: linux-lcg
 on: [push, pull_request]
 
 jobs:
-  ubuntu-2004:
+  build-lcg-ubuntu-2004:
     runs-on: ubuntu-20.04
     strategy:
       fail-fast: false
       matrix:
-        LCG: ["LCG_101/x86_64-ubuntu2004-gcc9-opt",
-              "LCG_99/x86_64-ubuntu2004-gcc9-opt"]
+        LCG: ["LCG_101/x86_64-ubuntu2004-gcc9-opt"]
     steps:
     - uses: actions/checkout@v2
     - uses: cvmfs-contrib/github-action-cvmfs@v2
@@ -19,24 +18,14 @@ jobs:
       with:
         release-platform: ${{ matrix.LCG }}
         run: |
-          cmake -B build -S .
+          PREFIX=install
+          cmake -B build -S . -DCMAKE_INSTALL_PREFIX=${PREFIX}
           cmake --build build -- install
-
-  ubuntu-2204:
-    runs-on: ubuntu-22.04
-    strategy:
-      fail-fast: false
-      matrix:
-        LCG: ["LCG_101/x86_64-ubuntu2004-gcc9-opt",
-              "LCG_99/x86_64-ubuntu2004-gcc9-opt"]
-    steps:
-    - uses: actions/checkout@v2
-    - uses: cvmfs-contrib/github-action-cvmfs@v2
+          # check geometry
+          source ${PREFIX}/setup.sh
+          checkGeometry -c ${BEAMLINE_PATH}/${BEAMLINE}.xml
+    - uses: actions/upload-artifact@v3
       with:
-        cvmfs_repositories: 'sft.cern.ch,geant4.cern.ch'
-    - uses: aidasoft/run-lcg-view@v1
-      with:
-        release-platform: ${{ matrix.LCG }}
-        run: |
-          cmake -B build -S .
-          cmake --build build -- install
+        name: build-lcg-ubuntu2004
+        path: install/
+        if-no-files-found: error
-- 
GitLab