Skip to content

Commit

Permalink
release some disk spaces for macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
liudonghua123 committed Sep 9, 2024
1 parent 0a91187 commit 1e4d5d5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ jobs:
- name: Initialization for ${{ env.tag_name }} ...
run: |
echo ok!
- name: Release some disk spaces for macos build, initialize latest xcode ...
if: startsWith(matrix.os, 'macos')
uses: maxim-lobanov/setup-xcode@v1.6.0
- name: Release some disk spaces for macos build, remove old xcode versions ...
if: startsWith(matrix.os, 'macos')
run: |
echo "Searching for Xcode versions:"
find /Applications -name "Xcode_*" -maxdepth 1 -mindepth 1
echo "Removing old Xcode versions..."
find /Applications -name "Xcode_*" -maxdepth 1 -mindepth 1 | grep -v ${{ matrix.xcode }} | xargs rm -rf
echo "Available Xcode versions after removal:"
find /Applications -name "Xcode_*" -maxdepth 1 -mindepth 1
- name: Building for linux ...
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand Down

0 comments on commit 1e4d5d5

Please sign in to comment.