Skip to content

Commit

Permalink
uninstall packages for exatrkx build (not enough disk)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Sep 20, 2024
1 parent 7de0d90 commit afa430a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,29 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITLAB_REGISTRY_PUSH_TOKEN }}

- name: Remove packages for ExaTrkX build
if: ${{ matrix.context == 'ubuntu2204_exatrkx' }}
run: |
df -h
sudo apt-get update
echo "Listing 25 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 25
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y '^libllvm-.*'
sudo apt-get remove -y azure-cli
sudo apt-get remove -y google-cloud-cli
sudo apt-get remove -y google-chrome-stable
sudo apt-get remove -y firefox
sudo apt-get remove -y powershell
sudo apt-get remove -y mono-devel
sudo apt-get remove -y '^temurin.*'
sudo apt-get autoremove -y
sudo apt-get clean
rm -rf /usr/share/dotnet/
df -h
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand Down

0 comments on commit afa430a

Please sign in to comment.