Skip to content

Commit 776c601

Browse files
authored
Run action that frees up diskspace during workflows (java-native-access#573)
Motivation: We need quite some diskspace due our ue of docker, let's ensure we have enough by free up what we dont need on the runner. Modifications: Use action that frees up diskspace Result: More stable build
1 parent aab4d8f commit 776c601

5 files changed

Lines changed: 70 additions & 0 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
runs-on: ubuntu-latest
3434
name: linux-x86_64
3535
steps:
36+
- name: Free Disk Space (Ubuntu)
37+
uses: jlumbroso/free-disk-space@main
38+
with:
39+
# this might remove tools that are actually needed,
40+
# if set to "true" but frees about 6 GB
41+
tool-cache: false
42+
3643
- uses: actions/checkout@v3
3744

3845
# Caching of maven dependencies
@@ -73,6 +80,13 @@ jobs:
7380
runs-on: ubuntu-latest
7481
name: linux-aarch64
7582
steps:
83+
- name: Free Disk Space (Ubuntu)
84+
uses: jlumbroso/free-disk-space@main
85+
with:
86+
# this might remove tools that are actually needed,
87+
# if set to "true" but frees about 6 GB
88+
tool-cache: false
89+
7690
- uses: actions/checkout@v3
7791

7892
# Caching of maven dependencies

.github/workflows/ci-deploy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ jobs:
4343

4444
name: stage-snapshot-${{ matrix.setup }}
4545
steps:
46+
- name: Free Disk Space (Ubuntu)
47+
uses: jlumbroso/free-disk-space@main
48+
with:
49+
# this might remove tools that are actually needed,
50+
# if set to "true" but frees about 6 GB
51+
tool-cache: false
52+
4653
- uses: actions/checkout@v3
4754

4855
# Caching of maven dependencies
@@ -159,6 +166,13 @@ jobs:
159166
# Wait until we have staged everything
160167
needs: [stage-snapshot-linux, stage-snapshot-windows-x86_64]
161168
steps:
169+
- name: Free Disk Space (Ubuntu)
170+
uses: jlumbroso/free-disk-space@main
171+
with:
172+
# this might remove tools that are actually needed,
173+
# if set to "true" but frees about 6 GB
174+
tool-cache: false
175+
162176
- uses: actions/checkout@v3
163177

164178
- name: Set up JDK 8

.github/workflows/ci-pr.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ jobs:
4646
runs-on: ubuntu-latest
4747
name: ${{ matrix.setup }} build
4848
steps:
49+
- name: Free Disk Space (Ubuntu)
50+
uses: jlumbroso/free-disk-space@main
51+
with:
52+
# this might remove tools that are actually needed,
53+
# if set to "true" but frees about 6 GB
54+
tool-cache: false
55+
4956
- uses: actions/checkout@v3
5057

5158
# Cache .m2/repository

.github/workflows/ci-release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
prepare-release:
2727
runs-on: ubuntu-latest
2828
steps:
29+
- name: Free Disk Space (Ubuntu)
30+
uses: jlumbroso/free-disk-space@main
31+
with:
32+
# this might remove tools that are actually needed,
33+
# if set to "true" but frees about 6 GB
34+
tool-cache: false
35+
2936
- uses: actions/checkout@v3
3037
with:
3138
ref: main
@@ -86,6 +93,13 @@ jobs:
8693
name: stage-release-${{ matrix.setup }}
8794

8895
steps:
96+
- name: Free Disk Space (Ubuntu)
97+
uses: jlumbroso/free-disk-space@main
98+
with:
99+
# this might remove tools that are actually needed,
100+
# if set to "true" but frees about 6 GB
101+
tool-cache: false
102+
89103
- name: Download release-workspace
90104
uses: actions/download-artifact@v3
91105
with:
@@ -270,6 +284,13 @@ jobs:
270284
# Wait until we have staged everything
271285
needs: [stage-release-linux, stage-release-windows-x86_64]
272286
steps:
287+
- name: Free Disk Space (Ubuntu)
288+
uses: jlumbroso/free-disk-space@main
289+
with:
290+
# this might remove tools that are actually needed,
291+
# if set to "true" but frees about 6 GB
292+
tool-cache: false
293+
273294
- name: Download release-workspace
274295
uses: actions/download-artifact@v3
275296
with:

.github/workflows/ci-verify-load.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ jobs:
3232
install-jars-linux-aarch64:
3333
runs-on: ubuntu-latest
3434
steps:
35+
- name: Free Disk Space (Ubuntu)
36+
uses: jlumbroso/free-disk-space@main
37+
with:
38+
# this might remove tools that are actually needed,
39+
# if set to "true" but frees about 6 GB
40+
tool-cache: false
41+
3542
- uses: actions/checkout@v3
3643

3744
# Caching of maven dependencies
@@ -70,6 +77,13 @@ jobs:
7077
runs-on: ubuntu-latest
7178
needs: [ install-jars-linux-aarch64 ]
7279
steps:
80+
- name: Free Disk Space (Ubuntu)
81+
uses: jlumbroso/free-disk-space@main
82+
with:
83+
# this might remove tools that are actually needed,
84+
# if set to "true" but frees about 6 GB
85+
tool-cache: false
86+
7387
- uses: actions/checkout@v3
7488

7589
- name: Download the maven repository

0 commit comments

Comments
 (0)