diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a3919c8b..945808532 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -555,6 +555,7 @@ jobs: echo "BUILD_TYPE=Release" >> $env:GITHUB_ENV echo "CLAD_CODE_COVERAGE=0" >> $env:GITHUB_ENV $env:ncpus=$([Environment]::ProcessorCount) + echo "ncpus=$env:ncpus" >> $env:GITHUB_ENV - name: Download Coverity Build Tool - Linux if: ${{ (matrix.coverity == true) && (runner.os == 'Linux') }} @@ -762,7 +763,7 @@ jobs: -DLLVM_BUILD_LLVM_DYLIB_VIS=On ` -DLLVM_LINK_LLVM_DYLIB=On ` -DCLANG_LINK_CLANG_DYLIB=On - cmake --build build + cmake --build build --config RelWithDebInfo --parallel ${{ env.ncpus }} rm -r -force $(find.exe . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".") cd .\llvm\ rm -r -force $(find.exe . -maxdepth 1 ! -name "include" ! -name "lib" ! -name "cmake" ! -name ".") @@ -770,14 +771,13 @@ jobs: rm -r -force $(find.exe . -maxdepth 1 ! -name "include" ! -name "lib" ! -name "cmake" ! -name ".") cd ..\.. - #Commented out while debugging - #- name: Save Cache LLVM/Clang runtime build directory (debug_build==true) - # uses: actions/cache/save@v4 - # if: ${{ (matrix.debug_build == true) && (steps.cache.outputs.cache-hit != 'true') }} - # with: - # path: | - # llvm-project - # key: ${{ steps.cache.outputs.cache-primary-key }} + - name: Save Cache LLVM/Clang runtime build directory (debug_build==true) + uses: actions/cache/save@v4 + if: ${{ (matrix.debug_build == true) && (steps.cache.outputs.cache-hit != 'true') }} + with: + path: | + llvm-project + key: ${{ steps.cache.outputs.cache-primary-key }} - name: Set LLVM/Cling build path on Unix (debug_build==true) if: ${{ (matrix.debug_build == true) && (runner.os != 'windows') }} @@ -910,14 +910,14 @@ jobs: echo "PATH_TO_LLVM_BUILD=$env:PATH_TO_LLVM_BUILD" >> $env:GITHUB_ENV $lit = @(which lit) cmake -G Ninja -DCMAKE_BUILD_TYPE="$env:BUILD_TYPE" -DClang_DIR="$env:PATH_TO_LLVM_BUILD" -DLLVM_DIR="$env:PATH_TO_LLVM_BUILD" -DLLVM_BUILD_LLVM_DYLIB_VIS=On -DLLVM_LINK_LLVM_DYLIB=On -DCLANG_LINK_CLANG_DYLIB=On -DCLAD_CODE_COVERAGE="$env:CLAD_CODE_COVERAGE" -DCLAD_BUILD_STATIC_ONLY="ON" -DLLVM_EXTERNAL_LIT="$lit" "$env:GITHUB_WORKSPACE" ${{ matrix.extra_cmake_options }} - cmake --build . --config "$env:BUILD_TYPE" + cmake --build . --config "$env:BUILD_TYPE" --parallel ${{ env.ncpus }} } else { ((Get-Content -path C:/Miniconda/Library/lib/cmake/llvm/LLVMConfig.cmake -Raw) -replace 'LLVM_ENABLE_DIA_SDK ON','LLVM_ENABLE_DIA_SDK OFF') | Set-Content -Path C:/Miniconda/Library/lib/cmake/llvm/LLVMConfig.cmake $lit = @(which lit) cmake -DClang_DIR="$env:PATH_TO_LLVM_BUILD" -DLLVM_DIR="$env:PATH_TO_LLVM_BUILD" -DCMAKE_BUILD_TYPE="$env:BUILD_TYPE" -DCLAD_CODE_COVERAGE="$env:CLAD_CODE_COVERAGE" -DCLAD_BUILD_STATIC_ONLY="ON" -DLLVM_EXTERNAL_LIT="$lit" "$env:GITHUB_WORKSPACE" ${{ matrix.extra_cmake_options }} - cmake --build . --config Release + cmake --build . --config Release --parallel ${{ env.ncpus }} }