Skip to content

Commit 268cefd

Browse files
committed
Free up space on Ubuntu runner for nuttx spec tests.
LLVM 21 update uses more disk space and makes the standard runner fail with "No space left on device". Using the [free disk space action](https://github.com/marketplace/actions/free-disk-space-ubuntu) to delete the unused Android, Haskell, and .NET runtimes frees up space on the runner.
1 parent f4dc4e1 commit 268cefd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/spec_test_on_nuttx.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,25 @@ permissions:
3333
contents: read
3434

3535
jobs:
36+
free_space_on_runner:
37+
3638
build_llvm_libraries:
3739
permissions:
3840
contents: read
3941
actions: write
42+
ses: jlumbroso/[email protected]
43+
with:
44+
# Deletes Android, Haskell, and .NET runtimes from the runner, freeing
45+
# about 15 GB.
46+
android: true
47+
dotnet: true
48+
haskell: true
49+
# Keeps the tool cache, some large packages, docker images, and swap.
50+
# Some of these could also be removed if more space is needed.
51+
tool-cache: false
52+
large-packages: false
53+
docker-images: false
54+
swap-storage: false
4055
uses: ./.github/workflows/build_llvm_libraries.yml
4156
with:
4257
os: "ubuntu-22.04"

0 commit comments

Comments
 (0)