Skip to content

Commit 01d4d3a

Browse files
Merge branch 'develop' of https://github.com/hcengineering/platform into staging-new
Signed-off-by: Artem Savchenko <[email protected]>
2 parents 7de81df + ea4e1c5 commit 01d4d3a

File tree

2 files changed

+35
-17
lines changed

2 files changed

+35
-17
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Free Space'
2+
description: 'Free up disk space by removing files and directories that are not needed for tests.'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: Free space
7+
shell: bash
8+
run: |
9+
echo "Disk space before cleanup:"
10+
df -h
11+
sudo rm -rf /usr/share/dotnet
12+
sudo rm -rf /usr/local/lib/android
13+
sudo rm -rf /usr/share/az_*
14+
sudo rm -rf /opt/az
15+
sudo rm -rf /usr/lib/google-cloud-sdk
16+
sudo rm -rf /opt/ghc
17+
sudo rm -rf "/usr/local/share/boost"
18+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
19+
echo "Disk space after cleanup:"
20+
df -h

.github/workflows/main.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ jobs:
240240
with:
241241
username: hardcoreeng
242242
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
243-
243+
- name: Free space
244+
uses: ./.github/actions/free-disk-space
244245
- name: Docker Build
245246
run: node common/scripts/install-run-rush.js docker
246247
env:
@@ -371,7 +372,8 @@ jobs:
371372
with:
372373
username: hardcoreeng
373374
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
374-
375+
- name: Free space
376+
uses: ./.github/actions/free-disk-space
375377
- name: Docker Build
376378
run: node common/scripts/install-run-rush.js docker
377379
env:
@@ -467,6 +469,8 @@ jobs:
467469
with:
468470
username: hardcoreeng
469471
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
472+
- name: Free space
473+
uses: ./.github/actions/free-disk-space
470474
- name: Docker Build
471475
run: node common/scripts/install-run-rush.js docker
472476
env:
@@ -549,6 +553,8 @@ jobs:
549553
with:
550554
username: hardcoreeng
551555
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
556+
- name: Free space
557+
uses: ./.github/actions/free-disk-space
552558
- name: Docker Build
553559
run: node common/scripts/install-run-rush.js docker
554560
env:
@@ -606,16 +612,13 @@ jobs:
606612
timeout-minutes: 60
607613
steps:
608614
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
609-
- name: Free disk space
610-
run: |
611-
echo "Disk space before cleanup:"
612-
df -h
613-
sudo rm -rf /usr/share/dotnet
614-
sudo rm -rf /opt/ghc
615-
sudo rm -rf "/usr/local/share/boost"
616-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
617-
echo "Disk space after cleanup:"
618-
df -h
615+
- uses: actions/checkout@v4
616+
with:
617+
fetch-depth: 0
618+
filter: tree:0
619+
submodules: recursive
620+
- name: Free space
621+
uses: ./.github/actions/free-disk-space
619622
- name: Set up QEMU
620623
uses: docker/setup-qemu-action@v3
621624
- name: Configure docker
@@ -627,11 +630,6 @@ jobs:
627630
"containerd-snapshotter": true
628631
}
629632
}
630-
- uses: actions/checkout@v4
631-
with:
632-
fetch-depth: 0
633-
filter: tree:0
634-
submodules: recursive
635633
636634
- name: Checkout init repository
637635
run: |

0 commit comments

Comments
 (0)