Skip to content

Commit

Permalink
Manually remove unused packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Jul 21, 2023
1 parent e9362f5 commit cbacf84
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ jobs:
- 5000:5000

steps:
# https://github.com/easimon/maximize-build-space/blob/6ae56c86ea8db291ae39f62352a412c36ab8179b/action.yml#L110-L126
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-android: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'
remove-codeql: 'true'

run: |
a=$(df / | tail -n 1 | awk '{print $4}')
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
b=$(df / | tail -n 1 | awk '{print $4}')
d="$(expr $(($a-$b)) / 1000000000 )GB"
echo "Saved $d"
df -hl
- uses: actions/checkout@v3

# QEMU is used for non-x86_64 builds
Expand Down

0 comments on commit cbacf84

Please sign in to comment.