Skip to content

Commit c17a2ce

Browse files
MiaAltieriGu1nness
andauthored
CI: free up space (#386)
Co-authored-by: Neha Oudin <[email protected]>
1 parent 2553976 commit c17a2ce

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ jobs:
101101
uses: actions/checkout@v4
102102
with:
103103
fetch-depth: 0
104+
- name: (GitHub hosted) Free up disk space
105+
timeout-minutes: 1
106+
run: |
107+
printf '\nDisk usage before cleanup\n'
108+
df --human-readable
109+
# Based on https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
110+
rm -r /opt/hostedtoolcache/
111+
printf '\nDisk usage after cleanup\n'
112+
df --human-readable
113+
- name: (self hosted) Disk usage
114+
timeout-minutes: 1
115+
run: df --human-readable
104116
- name: Install terraform snap
105117
run: |
106118
sudo snap install terraform --channel=latest/stable --classic
@@ -121,6 +133,7 @@ jobs:
121133
sudo iptables -P FORWARD ACCEPT
122134
- name: Juju setup
123135
run: |
136+
mkdir -p ~/.local/share/juju # Workaround for juju 3 strict snap
124137
sg 'lxd' -c "juju bootstrap 'localhost' --config model-logs-size=10G"
125138
juju model-defaults logging-config='<root>=INFO; unit=DEBUG'
126139
- name: Terraform deploy ${{ matrix.module.name }}

0 commit comments

Comments
 (0)