瀏覽代碼

Expand Linux disk for 3p package environments (#278)

Adds a disk resizing workflow to the packaging environment. This will
increase the root disk size to 20GB and remove non-essential packages

Signed-off-by: Mike Chang <[email protected]>
Mike Chang 5 月之前
父節點
當前提交
5eb11ba070
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      .github/workflows/build-package.yaml

+ 10 - 0
.github/workflows/build-package.yaml

@@ -135,6 +135,16 @@ jobs:
       run: |
         git config --global core.longpaths true
         echo "uid_gid=$(id -u):$(id -g)" >> $GITHUB_OUTPUT
+
+    - name: Expand disk size for Linux
+      uses: easimon/maximize-build-space@v10
+      if: runner.os == 'Linux'
+      with:
+        root-reserve-mb: 20000
+        swap-size-mb: 200
+        remove-dotnet: true
+        remove-haskell: true
+        remove-codeql: true
       
     - name: Checkout 3P source repo
       uses: actions/checkout@v4