1
0

ci: reclaim some space in runner vm

This commit is contained in:
dump_stack() 2023-05-17 11:59:11 +00:00
parent c3f6e90137
commit 0cb9128810
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 25 additions and 0 deletions

19
.github/workflows/scripts/setup.sh vendored Normal file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -eu
df -h
sudo systemd-run --wait rm -rf \
/usr/share/az* \
/usr/share/dotnet \
/usr/share/gradle* \
/usr/share/miniconda \
/usr/share/swift \
/var/lib/gems \
/var/lib/mysql \
/var/lib/snapd
sudo fstrim /
df -h

View File

@ -54,6 +54,9 @@ jobs:
]
steps:
- name: Setup
run: .github/workflows/scripts/setup.sh
- uses: actions/checkout@v1
- name: Build
@ -108,6 +111,9 @@ jobs:
]
steps:
- name: Setup
run: .github/workflows/scripts/setup.sh
- uses: actions/checkout@v1
- name: Build