Skip to content

Commit dd77fd9

Browse files
committed
Update Build_LLVM reusable action to reduce cache size
1 parent bc728d3 commit dd77fd9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/actions/Build_LLVM/action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ runs:
6464
-DLLVM_INCLUDE_TESTS=OFF \
6565
../llvm
6666
ninja clang clangInterpreter clangStaticAnalyzerCore -j ${{ env.ncpus }}
67-
cd ./tools/
68-
rm -rf $(find . -maxdepth 1 ! -name "clang" ! -name ".")
69-
cd ..
70-
rm compile_commands.json build.ninja
7167
fi
68+
cd ./tools/
69+
rm -rf $(find . -maxdepth 1 ! -name "clang" ! -name ".")
70+
cd ..
71+
rm compile_commands.json build.ninja
7272
cd ../
7373
rm -rf $(find . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")
7474
if [[ "${cling_on}" == "ON" ]]; then
@@ -157,7 +157,9 @@ runs:
157157
..\llvm
158158
cmake --build . --config Release --target clang clangInterpreter clangStaticAnalyzerCore --parallel ${{ env.ncpus }}
159159
}
160-
cd ..\
160+
cd .\tools\
161+
rm -r -force $(find.exe . -maxdepth 1 ! -name "clang" ! -name ".")
162+
cd ..\..
161163
rm -r -force $(find.exe . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")
162164
if ( "${{ matrix.cling }}" -imatch "On" )
163165
{

0 commit comments

Comments
 (0)