diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 534a9601..e3198bfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -186,7 +186,6 @@ jobs: brew link --overwrite "$pkg" done brew upgrade - brew install libomp - name: Restore Cache LLVM/Clang runtime build directory uses: actions/cache/restore@v3 @@ -206,11 +205,9 @@ jobs: cd ./cling git checkout tags/v${{ matrix.cling-version }} cd .. - CLING_DIR="$(pwd)/cling" - - git clone --depth=1 -b cling-llvm${{ matrix.clang-runtime }} https://github.com/root-project/llvm-project.git clang-dev + git clone --depth=1 -b cling-llvm${{ matrix.clang-runtime }} https://github.com/root-project/llvm-project.git else # repl - git clone --depth=1 -b release/${{ matrix.clang-runtime }}.x https://github.com/llvm/llvm-project.git clang-dev + git clone --depth=1 -b release/${{ matrix.clang-runtime }}.x https://github.com/llvm/llvm-project.git fi cd clang-dev # Build @@ -218,30 +215,24 @@ jobs: mkdir inst if [[ "${cling_on}" == "ON" ]]; then cd build - #FIXME: Unable to compile root-project/llvm-project openmp - #on osx on Github runner, despite being able to locally - os="${{ matrix.os }}" - if [[ "${os}" == "macos"* ]]; then - PROJECTS=clang - else - PROJECTS='"clang;openmp"' - fi - cmake -DLLVM_ENABLE_PROJECTS=$PROJECTS \ + cmake -DLLVM_ENABLE_PROJECTS="clang;openmp" \ -DLLVM_EXTERNAL_PROJECTS=cling \ - -DLLVM_EXTERNAL_CLING_SOURCE_DIR=$CLING_DIR \ + -DLLVM_EXTERNAL_CLING_SOURCE_DIR=../../cling \ -DLLVM_TARGETS_TO_BUILD="host;NVPTX" \ -DCMAKE_BUILD_TYPE=Release \ - -DLLVM_OPTIMIZED_TABLEGEN=OFF \ -DLLVM_ENABLE_ASSERTIONS=ON \ + -DLLVM_ENABLE_LLD=ON \ -DCLANG_ENABLE_STATIC_ANALYZER=OFF \ -DCLANG_ENABLE_ARCMT=OFF \ -DCLANG_ENABLE_FORMAT=OFF \ -DCLANG_ENABLE_BOOTSTRAP=OFF \ -DCMAKE_INSTALL_PREFIX=../inst \ - -DLLVM_ENABLE_LLD=ON \ - -DLLVM_BUILD_TESTS=OFF \ ../llvm - cmake --build . --target all --parallel ${{ env.ncpus }} + cmake --build . --target clang --parallel ${{ env.ncpus }} + cmake --build . --target cling --parallel ${{ env.ncpus }} + cmake --build . --target openmp --parallel ${{ env.ncpus }} + # Now build gtest.a and gtest_main for CppInterOp to run its tests. + cmake --build . --target gtest_main --parallel ${{ env.ncpus }} cmake --build . --target install --parallel ${{ env.ncpus }} else # Apply patches @@ -251,7 +242,6 @@ jobs: cmake -DLLVM_ENABLE_PROJECTS="clang;openmp" \ -DLLVM_TARGETS_TO_BUILD="host;NVPTX" \ -DCMAKE_BUILD_TYPE=Release \ - -DLLVM_OPTIMIZED_TABLEGEN=OFF \ -DLLVM_ENABLE_ASSERTIONS=ON \ -DCLANG_ENABLE_STATIC_ANALYZER=OFF \ -DCLANG_ENABLE_ARCMT=OFF \ @@ -267,6 +257,7 @@ jobs: cd .. rm -rf $(find . -maxdepth 1 ! -name "inst" ! -name ".") cd .. + mv llvm-project clang-dev - name: Save Cache LLVM/Clang runtime build directory uses: actions/cache/save@v3