Skip to content

Commit

Permalink
fix(ci)
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyoush committed Oct 19, 2024
1 parent 51f76a9 commit 9bf48b6
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,9 @@ jobs:
with:
go-version: '1.22.4'

- name: Build
- name: Remove large directories
run: |
echo "=============================================================================="
echo "Freeing up disk space on CI system"
echo "=============================================================================="
echo "Listing 100 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^ghc-8.*' || true
sudo apt-get remove -y '^dotnet-.*' || true
sudo apt-get remove -y 'php.*' || true
sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel || true
sudo apt-get autoremove -y || true
sudo apt-get clean || true
df -h
echo "Removing large directories"
# deleting 15GB
rm -rf /usr/share/dotnet/ || true
rm -rf /opt/hostedtoolcache || true
df -h
Expand Down

0 comments on commit 9bf48b6

Please sign in to comment.