Skip to content

Commit

Permalink
ci: avoid no space left on device
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jan 26, 2025
1 parent 11aeee1 commit 4a7d379
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ jobs:
- name: Remove unused files to free up space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android
du --max-depth=3 -h /usr | sort -hr
sudo rm -rf /usr/share/swift /usr/lib/jvm /usr/local/lib/android /usr/local/.ghcup
- name: Build
run: |
Expand Down Expand Up @@ -91,7 +92,7 @@ jobs:
- name: Remove unused files to free up space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android
sudo rm -rf /usr/share/swift /usr/lib/jvm /usr/local/lib/android /usr/local/.ghcup
- name: Build
if: ${{ inputs.androidBuildArgs != '' }}
Expand Down Expand Up @@ -213,7 +214,7 @@ jobs:
# avoid "No space left on device" error
- name: Remove unused files to free up space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android
sudo rm -rf /usr/share/swift /usr/lib/jvm /usr/local/lib/android /usr/local/.ghcup
- name: Install UnityEditor
if: ${{ env.BUILD_UNITYPACKAGE == '1' }}
Expand Down

0 comments on commit 4a7d379

Please sign in to comment.