File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 5656 # do full compile if running on main - this populates the cache
5757 if : ${{ github.event_name != 'pull_request' }}
5858 shell : bash
59- run : codeql query compile -j0 */ql/src --keep-going --warnings=error
59+ run : |
60+ # Move all the existing cache into another folder, so we only preserve the cache for the current queries.
61+ mkdir -p ${COMBINED_CACHE_DIR}
62+ rm */ql/src/.cache/{lock,size}
63+ # copy the contents of the .cache folders into the combined cache folder.
64+ cp -r */ql/src/.cache/* ${COMBINED_CACHE_DIR}/
65+ # clean up the .cache folders
66+ rm -rf */ql/src/.cache/*
67+
68+ # compile the queries
69+ codeql query compile -j0 */ql/src --keep-going --warnings=error --compilation-cache ${COMBINED_CACHE_DIR}
70+ env :
71+ COMBINED_CACHE_DIR : ${{ github.workspace }}/compilation-dir
You can’t perform that action at this time.
0 commit comments