@@ -3,12 +3,12 @@ name: testMacOS
33on :
44 push :
55 branches :
6- - ' **' # Run on all branches
6+ - ' **' # Run on all branches
77 tags-ignore :
8- - ' v*' # Ignore tag pushes matching 'v*'
8+ - ' v*' # Ignore tag pushes like v1.2.3
99 pull_request :
1010 branches :
11- - ' **' # Run for all pull requests
11+ - ' **'
1212
1313env :
1414 BUILD_TYPE : Release
@@ -21,18 +21,29 @@ jobs:
2121 steps :
2222 - uses : actions/checkout@v4
2323 with :
24- submodules : ' recursive'
24+ submodules : recursive
2525
2626 - name : Install dependencies (Homebrew)
2727 run : |
2828 brew update
29- brew install cmake boost gtk+3 hdf5
29+ brew install cmake boost gtk+3 hdf5 libomp
3030
31- - name : Configure CMake
32- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRAYX_WERROR=ON -DRAYX_REQUIRE_CUDA=OFF
31+ - name : Configure CMake with OpenMP support
32+ env :
33+ LDFLAGS : " -L/opt/homebrew/opt/libomp/lib"
34+ CPPFLAGS : " -I/opt/homebrew/opt/libomp/include"
35+ run : |
36+ cmake -B build \
37+ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
38+ -DRAYX_WERROR=ON \
39+ -DRAYX_REQUIRE_CUDA=OFF \
40+ -DCMAKE_CXX_COMPILER="$(which clang++)" \
41+ -DCMAKE_CXX_FLAGS="-Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include" \
42+ -DCMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/opt/libomp/lib -lomp"
3343
3444 - name : Build
35- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
45+ run : |
46+ cmake --build build --config ${{env.BUILD_TYPE}}
3647
3748 - name : Run
3849 working-directory : ${{github.workspace}}
0 commit comments