Skip to content

Commit 5e1e2e1

Browse files
committed
Free some disk space in GitHub Actions
Signed-off-by: Ilya Leoshkevich <[email protected]>
1 parent 2343a49 commit 5e1e2e1

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/dotnet.yml

+36
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
- arch: ppc64le
2525
isV6: true
2626
steps:
27+
- name: Show free disk space
28+
run: df -h
29+
- name: Free some disk space
30+
run: rm -r /opt/hostedtoolcache
31+
- name: Show free disk space
32+
run: df -h
2733
- name: Configure git
2834
run: git config --global user.email [email protected] &&
2935
git config --global user.name "dotnet-s390x bot"
@@ -59,6 +65,12 @@ jobs:
5965
- arch: ppc64le
6066
isV6: true
6167
steps:
68+
- name: Show free disk space
69+
run: df -h
70+
- name: Free some disk space
71+
run: rm -r /opt/hostedtoolcache
72+
- name: Show free disk space
73+
run: df -h
6274
- name: Configure git
6375
run: git config --global user.email [email protected] &&
6476
git config --global user.name "dotnet-s390x bot"
@@ -98,6 +110,12 @@ jobs:
98110
- arch: ppc64le
99111
isV6: true
100112
steps:
113+
- name: Show free disk space
114+
run: df -h
115+
- name: Free some disk space
116+
run: rm -r /opt/hostedtoolcache
117+
- name: Show free disk space
118+
run: df -h
101119
- name: Configure git
102120
run: git config --global user.email [email protected] &&
103121
git config --global user.name "dotnet-s390x bot"
@@ -137,6 +155,12 @@ jobs:
137155
- arch: ppc64le
138156
isV6: true
139157
steps:
158+
- name: Show free disk space
159+
run: df -h
160+
- name: Free some disk space
161+
run: rm -r /opt/hostedtoolcache
162+
- name: Show free disk space
163+
run: df -h
140164
- name: Configure git
141165
run: git config --global user.email [email protected] &&
142166
git config --global user.name "dotnet-s390x bot"
@@ -176,6 +200,12 @@ jobs:
176200
- arch: ppc64le
177201
isV6: true
178202
steps:
203+
- name: Show free disk space
204+
run: df -h
205+
- name: Free some disk space
206+
run: rm -r /opt/hostedtoolcache
207+
- name: Show free disk space
208+
run: df -h
179209
- name: Configure git
180210
run: git config --global user.email [email protected] &&
181211
git config --global user.name "dotnet-s390x bot"
@@ -211,6 +241,12 @@ jobs:
211241
arch: [x64]
212242
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
213243
steps:
244+
- name: Show free disk space
245+
run: df -h
246+
- name: Free some disk space
247+
run: rm -r /opt/hostedtoolcache
248+
- name: Show free disk space
249+
run: df -h
214250
- name: Configure git
215251
run: git config --global user.email [email protected] &&
216252
git config --global user.name "dotnet-s390x bot"

.github/workflows/dotnet.yml.j2

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ EXEC : error : Failed to load assembly 'System.Private.CoreLib'
3838
{%- set image -%}ghcr.io/ibm/dotnet-{% raw %}${{ matrix.arch }}{% endraw %}-toolchain:latest{%- endset %}
3939

4040
{%- set init_steps -%}
41+
- name: Show free disk space
42+
run: df -h
43+
- name: Free some disk space
44+
run: rm -r /opt/hostedtoolcache
45+
- name: Show free disk space
46+
run: df -h
4147
- name: Configure git
4248
run: git config --global user.email [email protected] &&
4349
git config --global user.name "dotnet-s390x bot"

0 commit comments

Comments
 (0)