Sfoglia il codice sorgente

Update build-kernel-a14-6.1.yml

James McConnell 1 anno fa
parent
commit
da13f69859
1 ha cambiato i file con 15 aggiunte e 0 eliminazioni
  1. 15 0
      .github/workflows/build-kernel-a14-6.1.yml

+ 15 - 0
.github/workflows/build-kernel-a14-6.1.yml

@@ -73,6 +73,7 @@ jobs:
 
     steps:
       - name: Maximize build space
+        if: ${{ inputs.runner == 'ubuntu-22.04' }}
         uses: easimon/maximize-build-space@master
         with:
           root-reserve-mb: 8192
@@ -83,6 +84,13 @@ jobs:
           remove-haskell: 'true'
           remove-codeql: 'true'
 
+      - name: Clear GitHub Workspace
+        if: ${{ inputs.runner == 'ubuntu-22.04-local' }}
+        run: |
+          echo "Clearing the GitHub workspace..."
+          rm -rf $GITHUB_WORKSPACE/*
+          echo "Workspace cleared."
+
       - name: Set CONFIG Environment Variable
         run: |
           # Set CONFIG dynamically based on matrix values
@@ -349,3 +357,10 @@ jobs:
           path: |
             *.zip
             *.img
+
+      - name: Clear GitHub Workspace
+        if: ${{ inputs.runner == 'ubuntu-22.04-local' }}
+        run: |
+          echo "Clearing the GitHub workspace..."
+          rm -rf $GITHUB_WORKSPACE/*
+          echo "Workspace cleared."