Skip to content

Commit

Permalink
GH-Actions: install openMP on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz committed Jul 28, 2022
1 parent 82e78bf commit 0e8f350
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -43,6 +43,21 @@ jobs:
- name: 📁 Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- name: ⚙ Install OpenMP on macos
if: matrix.openmp == true && matrix.os == 'macos-latest'
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
brew install llvm
llvm_path="$(brew --prefix llvm)"
USER_PATH_COMPILER="${llvm_path}/bin/"
USER_COMPILER_C="clang"
USER_COMPILER_CXX="clang++"
echo llvm_path $llvm_path
echo CMAKE_FLAGS="$CMAKE_FLAGS -DUSER_COMPILER_C=${USER_COMPILER_C} -USER_COMPILER_CXX=${USER_COMPILER_CXX} -DUSER_PATH_COMPILER=${USER_PATH_COMPILER}" >> $GITHUB_ENV
- name: ⚙ Configure with OpenMP
if: matrix.openmp == true
shell: bash
Expand Down

0 comments on commit 0e8f350

Please sign in to comment.