Skip to content

Commit 928e855

Browse files
Free up some storage on pull requests to build (#104)
* Remove unneded files on ubuntu runners * Add du commands for better storage debugging
1 parent 360d495 commit 928e855

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pull-request.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ jobs:
3535
name: Build
3636
runs-on: ubuntu-latest
3737
steps:
38+
- name: Check system storage
39+
run: |
40+
sudo df -h
41+
- name: Remove unnecessary files
42+
run: |
43+
sudo rm -rf /usr/share/dotnet
44+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
45+
sudo rm -rf /usr/local/lib/android
46+
sudo rm -rf /opt/ghc
47+
- name: Check system storage
48+
run: |
49+
sudo df -h
3850
- name: Checkout
3951
uses: actions/checkout@v4
4052
- name: Get short commit hash
@@ -43,15 +55,27 @@ jobs:
4355
uses: actions/setup-go@v4
4456
with:
4557
go-version: "1.21.0"
58+
- name: Check system storage
59+
run: |
60+
sudo df -h
4661
- name: Build Linux AMD64
4762
run: |
4863
make helmvm-linux-amd64 VERSION=dev-$SHORT_SHA
64+
- name: Check system storage
65+
run: |
66+
sudo df -h
4967
- name: Build Darwin AMD64
5068
run: |
5169
make helmvm-darwin-amd64
70+
- name: Check system storage
71+
run: |
72+
sudo df -h
5273
- name: Build Darwin ARM64 VERSION=dev-$SHORT_SHA
5374
run: |
5475
make helmvm-darwin-arm64 VERSION=dev-$SHORT_SHA
76+
- name: Check system storage
77+
run: |
78+
sudo df -h
5579
- name: Build HelmVM Builder Server Image
5680
uses: docker/build-push-action@v5
5781
with:

0 commit comments

Comments
 (0)