Skip to content

Update Build_LLVM reusable action to reduce cache size #637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/actions/Build_LLVM/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ runs:
ninja clang -j ${{ env.ncpus }}
ninja LLVMOrcDebugging -j ${{ env.ncpus }}
ninja clingInterpreter -j ${{ env.ncpus }}
cd ./tools/
rm -rf $(find . -maxdepth 1 ! -name "cling" ! -name "clang" ! -name ".")
cd ..
rm compile_commands.json build.ninja
cd ../
else
# Apply patches
llvm_vers=$(echo "${{ matrix.clang-runtime }}" | tr '[:lower:]' '[:upper:]')
Expand All @@ -68,8 +73,8 @@ runs:
rm -rf $(find . -maxdepth 1 ! -name "clang" ! -name ".")
cd ..
rm compile_commands.json build.ninja
cd ../
fi
cd ../
rm -rf $(find . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")
if [[ "${cling_on}" == "ON" ]]; then
cd ./llvm/
Expand Down Expand Up @@ -129,6 +134,9 @@ runs:
cmake --build . --config Release --target clang --parallel ${{ env.ncpus }}
cmake --build . --config Release --target LLVMOrcDebugging --parallel ${{ env.ncpus }}
cmake --build . --config Release --target clingInterpreter --parallel ${{ env.ncpus }}
cd .\tools\
rm -r -force $(find.exe . -maxdepth 1 ! -name "cling" ! -name "clang" ! -name ".")
cd ..\..
}
else
{
Expand Down Expand Up @@ -156,8 +164,10 @@ runs:
-DCLANG_ENABLE_BOOTSTRAP=OFF `
..\llvm
cmake --build . --config Release --target clang clangInterpreter clangStaticAnalyzerCore --parallel ${{ env.ncpus }}
cd .\tools\
rm -r -force $(find.exe . -maxdepth 1 ! -name "clang" ! -name ".")
cd ..\..
}
cd ..\
rm -r -force $(find.exe . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")
if ( "${{ matrix.cling }}" -imatch "On" )
{
Expand Down
Loading