Skip to content

Commit 8264fb1

Browse files
committed
trying some disk cleanup
test Signed-off-by: Dhruva Gole <[email protected]>
1 parent 13f80c2 commit 8264fb1

File tree

1 file changed

+37
-10
lines changed

1 file changed

+37
-10
lines changed

.github/workflows/build.yml

+37-10
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,48 @@ name: Build
33
on: [push, pull_request]
44

55
jobs:
6+
free-disk-space:
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- name: Free Disk Space (Ubuntu)
11+
uses: jlumbroso/free-disk-space@main
12+
with:
13+
# this might remove tools that are actually needed,
14+
# if set to "true" but frees about 6 GB
15+
tool-cache: false
16+
17+
# all of these default to true, but feel free to set to
18+
# "false" if necessary for your workflow
19+
android: true
20+
dotnet: true
21+
haskell: true
22+
large-packages: true
23+
docker-images: true
24+
swap-storage: true
25+
626
build:
727
runs-on: ubuntu-latest
28+
container: zephyrprojectrtos/ci:latest
829
env:
930
CMAKE_PREFIX_PATH: /opt/toolchains
1031
steps:
11-
- name: Free disk
12-
run: |
13-
df -h
14-
ls -la /dev/root
15-
sudo apt-get -qq purge build-essential ghc*
16-
sudo apt-get clean
17-
df -h
18-
/usr/bin/docker system prune -af
19-
sudo rm -rf /usr/local/*
20-
df -h
32+
33+
- name: Free Disk Space (Ubuntu)
34+
uses: jlumbroso/free-disk-space@main
35+
with:
36+
# this might remove tools that are actually needed,
37+
# if set to "true" but frees about 6 GB
38+
tool-cache: false
39+
40+
# all of these default to true, but feel free to set to
41+
# "false" if necessary for your workflow
42+
android: true
43+
dotnet: true
44+
haskell: true
45+
large-packages: true
46+
docker-images: true
47+
swap-storage: true
2148

2249
- name: Checkout
2350
uses: actions/checkout@v2

0 commit comments

Comments
 (0)