Browse Source

Optimize runner resource usage

This hotfix provides the ability to build for Android 11
Bodya-Kolibass 4 years ago
parent
commit
aa4cdb37cf
1 changed files with 8 additions and 3 deletions
  1. 8 3
      .github/workflows/Make.yml

+ 8 - 3
.github/workflows/Make.yml

@@ -80,15 +80,20 @@ jobs:
       run: |
         PATH=~/bin:$PATH
         cd workspace
-        repo sync -j$(nproc --all) -f --force-sync
-        ls -al
+        repo sync -j$(nproc --all) -c --no-clone-bundle --no-tags
+        rm -rf .repo
       
     - name: Clone device tree
       run: |
         PATH=~/bin:$PATH
         cd ${{ steps.pwd.outputs.pwd }}
         git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
-
+        
+    - name: Set Swap Space
+      uses: pierotofy/set-swap-space@master
+      with:
+        swap-size-gb: 10
+        
     - name: Building recovery
       run: |
         PATH=~/bin:$PATH