build: cleanup symlinks in cache

This commit is contained in:
John Kleinschmidt
2025-07-11 10:33:11 -04:00
parent 624d085632
commit 69e53cdc88

View File

@@ -182,12 +182,20 @@ runs:
rm -rf src/electron
mkdir -p src/electron/.github/actions/checkout
mv action.yml src/electron/.github/actions/checkout
if [ "${{ inputs.target-platform }}" != "linux" ]; then
rm -rf src/build/linux/*-sysroot
fi
# On Windows deference symlinks to avoid Dangerous symbolic link path was ignore errors
- name: Compress Src Directory
if: ${{ steps.check-cache.outputs.cache_exists == 'false' && inputs.use-cache == 'true' }}
shell: bash
run: |
echo "Uncompressed src size: $(du -sh src | cut -f1 -d' ')"
tar -cf $CACHE_FILE src
if [ "${{ inputs.target-platform }}" = "win" ]; then
tar -chf $CACHE_FILE src
else
tar -cf $CACHE_FILE src
fi
echo "Compressed src to $(du -sh $CACHE_FILE | cut -f1 -d' ')"
cp ./$CACHE_FILE $CACHE_DRIVE/
- name: Persist Src Cache