removed unneccesary files before building

This commit is contained in:
aman-17 2025-05-22 15:06:18 -07:00
parent 8bfd1f144b
commit 70c40e48ab

View File

@ -24,6 +24,16 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Free up disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker system prune -af
sudo apt-get autoremove -y
sudo apt-get autoclean
df -h
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@ -55,5 +65,11 @@ jobs:
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64 platforms: linux/amd64
cache-from: type=gha outputs: type=registry
cache-to: type=gha,mode=max no-cache: true
- name: Clean up after build
if: always()
run: |
docker system prune -af --volumes
df -h