diff --git a/.github/actions/setup-ubuntu/action.yaml b/.github/actions/setup-ubuntu/action.yaml index da66e929c..65a950d03 100644 --- a/.github/actions/setup-ubuntu/action.yaml +++ b/.github/actions/setup-ubuntu/action.yaml @@ -14,7 +14,9 @@ runs: - name: Install dependencies # Shell must explicitly specify the shell for each step. https://github.com/orgs/community/discussions/18597 shell: bash - run: sudo apt install -y make direnv unzip lz4 wget curl npm jq pv coreutils libudev-dev + run: | + sudo apt-get update + sudo apt-get install -y make direnv unzip lz4 wget curl npm jq pv coreutils libudev-dev - name: Setup npm uses: actions/setup-node@v4 with: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 55cf9ada7..18738471c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -45,6 +45,16 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@v1.3.1 + with: # bool variable is used to determine if the package should be removed or not + tool-cache: false # pre-cached tools (Node, Go, Python, Ruby). Saves ~6GB. Total CI impact: +90s (30s cleanup + 60s re-download) + docker-images: false # cached Docker images. Saves ~5-10GB. Total CI impact: +110s (20s cleanup + 90s re-pull goreleaser-cross) + swap-storage: false # swap storage. Saves ~4GB disk but risks OOM during parallel goreleaser builds. Keep swap for safety. + android: true # Android SDK. Saves ~14GB. Total CI impact: +30s (not used in build) + dotnet: true # .NET runtime. Saves ~2.7GB. Total CI impact: +10s (not used in build) + haskell: true # Haskell (GHC). Saves ~5GB. Total CI impact: +10s (not used in build) + large-packages: true # large packages (llvm, php, mysql, etc). Saves ~5.3GB. Total CI impact: +60s (not used in build) - name: Setup environment uses: ./.github/actions/setup-ubuntu - run: make bins