Skip to content

Commit 8b5c1a1

Browse files
committed
Merge remote-tracking branch 'origin/staging-new'
Signed-off-by: Alexander Onnikov <[email protected]>
2 parents c066dca + 0eea6eb commit 8b5c1a1

File tree

442 files changed

+2801
-2338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

442 files changed

+2801
-2338
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: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,13 @@ 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:
247248
DOCKER_CLI_HINTS: false
249+
DOCKER_BUILDKIT: 1
248250
- name: Configure /etc/hosts
249251
run: |
250252
sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts
@@ -370,11 +372,13 @@ jobs:
370372
with:
371373
username: hardcoreeng
372374
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
373-
375+
- name: Free space
376+
uses: ./.github/actions/free-disk-space
374377
- name: Docker Build
375378
run: node common/scripts/install-run-rush.js docker
376379
env:
377380
DOCKER_CLI_HINTS: false
381+
DOCKER_BUILDKIT: 1
378382
- name: Configure /etc/hosts
379383
run: |
380384
sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts
@@ -465,10 +469,13 @@ jobs:
465469
with:
466470
username: hardcoreeng
467471
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
472+
- name: Free space
473+
uses: ./.github/actions/free-disk-space
468474
- name: Docker Build
469475
run: node common/scripts/install-run-rush.js docker
470476
env:
471477
DOCKER_CLI_HINTS: false
478+
DOCKER_BUILDKIT: 1
472479
- name: Configure /etc/hosts
473480
run: |
474481
sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts
@@ -546,10 +553,13 @@ jobs:
546553
with:
547554
username: hardcoreeng
548555
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
556+
- name: Free space
557+
uses: ./.github/actions/free-disk-space
549558
- name: Docker Build
550559
run: node common/scripts/install-run-rush.js docker
551560
env:
552561
DOCKER_CLI_HINTS: false
562+
DOCKER_BUILDKIT: 1
553563
- name: Configure /etc/hosts
554564
run: |
555565
sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts
@@ -602,16 +612,13 @@ jobs:
602612
timeout-minutes: 60
603613
steps:
604614
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
605-
- name: Free disk space
606-
run: |
607-
echo "Disk space before cleanup:"
608-
df -h
609-
sudo rm -rf /usr/share/dotnet
610-
sudo rm -rf /opt/ghc
611-
sudo rm -rf "/usr/local/share/boost"
612-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
613-
echo "Disk space after cleanup:"
614-
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
615622
- name: Set up QEMU
616623
uses: docker/setup-qemu-action@v3
617624
- name: Configure docker
@@ -623,11 +630,6 @@ jobs:
623630
"containerd-snapshotter": true
624631
}
625632
}
626-
- uses: actions/checkout@v4
627-
with:
628-
fetch-depth: 0
629-
filter: tree:0
630-
submodules: recursive
631633
632634
- name: Checkout init repository
633635
run: |
@@ -674,6 +676,8 @@ jobs:
674676
env:
675677
DOCKER_CLI_HINTS: false
676678
DOCKER_EXTRA: --platform=linux/amd64,linux/arm64
679+
DOCKER_BUILDKIT: 1
680+
DOCKER_BUILD_CLEANUP: true
677681
- name: Docker build love-agent
678682
run: |
679683
cd ./services/ai-bot/love-agent
@@ -682,6 +686,7 @@ jobs:
682686
env:
683687
DOCKER_CLI_HINTS: false
684688
DOCKER_EXTRA: --platform=linux/amd64,linux/arm64
689+
DOCKER_BUILDKIT: 1
685690
- name: Login to Docker Hub
686691
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/s') }}
687692
uses: docker/login-action@v3

0 commit comments

Comments
 (0)