diff --git a/.github/workflows/main-build-4testing.yml b/.github/workflows/main-build-4testing.yml
index 6b18fbae8fa..a578473d946 100644
--- a/.github/workflows/main-build-4testing.yml
+++ b/.github/workflows/main-build-4testing.yml
@@ -26,6 +26,12 @@ jobs:
        # - linux/arm64
         
     steps:
+      - name: Maximize build space
+        uses: easimon/maximize-build-space@master
+        with:
+          root-reserve-mb: 512
+          swap-size-mb: 1024
+          remove-dotnet: 'true'
       - name: Checkout
         uses: actions/checkout@v4
         with: