Skip to content

Commit

Permalink
CI: try brew install for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Oct 21, 2024
1 parent 8c4bde0 commit 584c18d
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,26 @@ on: [push, pull_request]

jobs:
macOS:
runs-on: macos-10.15
strategy:
matrix:
LCG: ["LCG_98python3/x86_64-mac1015-clang110-opt",
"LCG_99/x86_64-mac1015-clang120-opt"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
with:
cvmfs_repositories: 'sft.cern.ch,geant4.cern.ch'
- uses: aidasoft/run-lcg-view@v1
with:
release-platform: ${{ matrix.LCG }}
run: |
mkdir build
cd build
cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DDD4HEP_USE_XERCESC=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 ..
ninja
ninja install
. ../bin/thisdd4hep.sh
ctest --output-on-failure -j4
cd ../examples/
mkdir build
cd build
cmake -GNinja -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_XERCESC=ON -DCMAKE_CXX_STANDARD=17 ..
ninja
ninja install
ctest --output-on-failure -E t_ClientTests_Check_Shape_Eightpoint_Reflect_DetElement
- name: Checkout
uses: actions/checkout@v4
- name: Brew install
run: |
brew install root boost cmake ninja
- name: Compile
run: |
mkdir build
cd build
cmake -GNinja -DDD4HEP_USE_GEANT4=OFF -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=OFF -DBUILD_TESTING=ON -DDD4HEP_USE_XERCESC=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 ..
ninja
ninja install
. ../bin/thisdd4hep.sh
ctest --output-on-failure -j4
cd ../examples/
mkdir build
cd build
cmake -GNinja -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_XERCESC=OFF -DCMAKE_CXX_STANDARD=20 ..
ninja
ninja install
ctest --output-on-failure -E t_ClientTests_Check_Shape_Eightpoint_Reflect_DetElement

0 comments on commit 584c18d

Please sign in to comment.