mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
build: cleanup symlinks in cache
This commit is contained in:
10
.github/actions/checkout/action.yml
vendored
10
.github/actions/checkout/action.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user