Skip to content

Commit 7ae1a52

Browse files
authored
fix: address no space left on device + apt cache update (#2033)
* ci: updated cache before install * ci: used GA for a runner cleanup
1 parent 56645e3 commit 7ae1a52

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/actions/setup-ubuntu/action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ runs:
1414
- name: Install dependencies
1515
# Shell must explicitly specify the shell for each step. https://github.com/orgs/community/discussions/18597
1616
shell: bash
17-
run: sudo apt install -y make direnv unzip lz4 wget curl npm jq pv coreutils libudev-dev
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y make direnv unzip lz4 wget curl npm jq pv coreutils libudev-dev
1820
- name: Setup npm
1921
uses: actions/setup-node@v4
2022
with:

.github/workflows/tests.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ jobs:
4545
steps:
4646
- name: Checkout code
4747
uses: actions/checkout@v4
48+
- name: Free Disk Space (Ubuntu)
49+
uses: jlumbroso/free-disk-space@v1.3.1
50+
with: # bool variable is used to determine if the package should be removed or not
51+
tool-cache: false # pre-cached tools (Node, Go, Python, Ruby). Saves ~6GB. Total CI impact: +90s (30s cleanup + 60s re-download)
52+
docker-images: false # cached Docker images. Saves ~5-10GB. Total CI impact: +110s (20s cleanup + 90s re-pull goreleaser-cross)
53+
swap-storage: false # swap storage. Saves ~4GB disk but risks OOM during parallel goreleaser builds. Keep swap for safety.
54+
android: true # Android SDK. Saves ~14GB. Total CI impact: +30s (not used in build)
55+
dotnet: true # .NET runtime. Saves ~2.7GB. Total CI impact: +10s (not used in build)
56+
haskell: true # Haskell (GHC). Saves ~5GB. Total CI impact: +10s (not used in build)
57+
large-packages: true # large packages (llvm, php, mysql, etc). Saves ~5.3GB. Total CI impact: +60s (not used in build)
4858
- name: Setup environment
4959
uses: ./.github/actions/setup-ubuntu
5060
- run: make bins

0 commit comments

Comments
 (0)