Reuse and improve free space action (#10226)

* Reuse and improve free space action

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Checkout actions

Signed-off-by: Artem Savchenko <armisav@gmail.com>

---------

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2025-11-18 16:29:37 +07:00
committed by GitHub
parent f75296e8fa
commit ea4e1c596d
2 changed files with 10 additions and 15 deletions
+7 -15
View File
@@ -612,16 +612,13 @@ jobs:
timeout-minutes: 60
steps:
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
- name: Free disk space
run: |
echo "Disk space before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Disk space after cleanup:"
df -h
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0
submodules: recursive
- name: Free space
uses: ./.github/actions/free-disk-space
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Configure docker
@@ -633,11 +630,6 @@ jobs:
"containerd-snapshotter": true
}
}
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0
submodules: recursive
- name: Checkout init repository
run: |