Skip to content

Commit e4b0d8d

Browse files
committed
simplify the copy-logic, because cp -r actually creates the folders
1 parent 65c1e23 commit e4b0d8d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

.github/workflows/compile-queries.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,10 @@ jobs:
6060
# Move all the existing cache into another folder, so we only preserve the cache for the current queries.
6161
mkdir -p ${COMBINED_CACHE_DIR}
6262
rm */ql/src/.cache/{lock,size}
63-
# replicate the folder structure from the .cache folders into the combined cache folder. (because cp doesn't have a "create missing folders" option)
64-
find */ql/src/.cache -type d | cut -d "/" -f 6,7 | sort | uniq > folders.txt
65-
cat folders.txt | xargs -I {} mkdir -p ${COMBINED_CACHE_DIR}/{}
6663
# copy the contents of the .cache folders into the combined cache folder.
6764
cp -r */ql/src/.cache/* ${COMBINED_CACHE_DIR}/
6865
# clean up the .cache folders
6966
rm -rf */ql/src/.cache/*
70-
rm folders.txt
7167
7268
# compile the queries
7369
codeql query compile -j0 */ql/src --keep-going --warnings=error --compilation-cache ${COMBINED_CACHE_DIR}

0 commit comments

Comments
 (0)