Commit aedc9d4c authored by Simon Spannagel's avatar Simon Spannagel
Browse files
parent a7156f0c
Loading
Loading
Loading
Loading
+0 −54
Original line number Diff line number Diff line
@@ -59,57 +59,3 @@ jobs:
          chmod a+x bin/allpix
          cd build
          ctest -R ${{matrix.whichtest}} --output-on-failure -j4

  compile-mac:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - uses: cvmfs-contrib/github-action-cvmfs@v2
      with:
        cvmfs_repositories: "sft.cern.ch,geant4.cern.ch"
    - uses: aidasoft/run-lcg-view@v2
      with:
        run_local_checkout: 'false'
        release-platform: "${{env.LCG_VERSION}}/x86_64-mac11-clang120-opt"
        run: |
          mkdir build
          cd build
          cmake -GNinja -DCMAKE_CXX_FLAGS="-Werror" -DBUILD_LCIOWriter=ON -DCMAKE_BUILD_TYPE=RELEASE -DROOT_DIR=$ROOTSYS -DEigen3_DIR=$Eigen3_DIR -DLCIO_DIR=$LCIO_DIR ..
          ninja -k0
          ninja install
    - uses: actions/upload-artifact@v2
      with:
        name: allpix-artifacts-mac
        path: |
          build/
          bin/
          lib/

  test-mac:
    needs: compile-mac
    runs-on: macos-latest
    strategy:
      matrix:
        whichtest: [test_core, test_modules, examples]
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - uses: cvmfs-contrib/github-action-cvmfs@v2
      with:
        cvmfs_repositories: "sft.cern.ch,geant4.cern.ch"
    - uses: actions/download-artifact@v2
      with:
        name: allpix-artifacts-mac
    - uses: aidasoft/run-lcg-view@v2
      with:
        run_local_checkout: 'false'
        release-platform: "${{env.LCG_VERSION}}/x86_64-mac11-clang120-opt"
        run: |
          chmod -R a+x .github
          source .ci/init_x86_64.sh
          chmod a+x bin/allpix
          cd build
          ctest -R ${{matrix.whichtest}} --output-on-failure -j4