Преглед изворни кода

fix(action): add disk usage display steps throughout the build workflow

TheWildJames пре 4 месеци
родитељ
комит
d6e3c44345
1 измењених фајлова са 48 додато и 0 уклоњено
  1. 48 0
      .github/workflows/build.yml

+ 48 - 0
.github/workflows/build.yml

@@ -26,6 +26,12 @@ jobs:
     timeout-minutes: 60
     timeout-minutes: 60
 
 
     steps:
     steps:
+    - name: Display system disk usage
+      run: |
+        echo "=== Disk usage summary ==="
+        df -h
+        echo ""
+
     - name: Checkout Repository
     - name: Checkout Repository
       uses: actions/checkout@v5
       uses: actions/checkout@v5
 
 
@@ -50,16 +56,34 @@ jobs:
         rmz_version: "3.1.1"  # Required when rm_cmd is 'rmz'
         rmz_version: "3.1.1"  # Required when rm_cmd is 'rmz'
         testing: false
         testing: false
 
 
+    - name: Display system disk usage
+      run: |
+        echo "=== Disk usage summary ==="
+        df -h
+        echo ""
+
     - name: Setup more Swap (for LTO)
     - name: Setup more Swap (for LTO)
       uses: thejerrybao/setup-swap-space@v1   # or pierotofy/set-swap-space
       uses: thejerrybao/setup-swap-space@v1   # or pierotofy/set-swap-space
       with:
       with:
         swap-size-gb: 10          # 10-24 GB is common for heavy LTO
         swap-size-gb: 10          # 10-24 GB is common for heavy LTO
         # swap-space-path: /mnt/swapfile   # optional
         # swap-space-path: /mnt/swapfile   # optional
 
 
+    - name: Display system disk usage
+      run: |
+        echo "=== Disk usage summary ==="
+        df -h
+        echo ""
+
     - name: Setup Build Environment
     - name: Setup Build Environment
       uses: ./.github/actions/setup-build-environment
       uses: ./.github/actions/setup-build-environment
       env:
       env:
         BOOT_SIGN_KEY: ${{ secrets.BOOT_SIGN_KEY }}
         BOOT_SIGN_KEY: ${{ secrets.BOOT_SIGN_KEY }}
+
+    - name: Display system disk usage
+      run: |
+        echo "=== Disk usage summary ==="
+        df -h
+        echo ""
           
           
     - name: Download Kernel Repository
     - name: Download Kernel Repository
       uses: ./.github/actions/download-kernel
       uses: ./.github/actions/download-kernel
@@ -69,6 +93,12 @@ jobs:
         os_patch_level: ${{ steps.parse.outputs.os_patch_level }}
         os_patch_level: ${{ steps.parse.outputs.os_patch_level }}
         use_repo: ${{ inputs.use_repo }}
         use_repo: ${{ inputs.use_repo }}
 
 
+    - name: Display system disk usage
+      run: |
+        echo "=== Disk usage summary ==="
+        df -h
+        echo ""
+
     - name: Extract Sublevel and Set File Name
     - name: Extract Sublevel and Set File Name
       id: extract
       id: extract
       uses: ./.github/actions/extract-sublevel-file-name
       uses: ./.github/actions/extract-sublevel-file-name
@@ -178,6 +208,12 @@ jobs:
         if-no-files-found: ignore
         if-no-files-found: ignore
         compression-level: 9
         compression-level: 9
 
 
+    - name: Display system disk usage
+      run: |
+        echo "=== Disk usage summary ==="
+        df -h
+        echo ""
+
     - name: 'Setup ccache and Build Environment'
     - name: 'Setup ccache and Build Environment'
       shell: bash
       shell: bash
       if: true
       if: true
@@ -334,12 +370,24 @@ jobs:
         du -sh /home/runner/.ld_cache || true
         du -sh /home/runner/.ld_cache || true
         ls -l /home/runner/.ld_cache || true
         ls -l /home/runner/.ld_cache || true
 
 
+    - name: Display system disk usage
+      run: |
+        echo "=== Disk usage summary ==="
+        df -h
+        echo ""
+
     - name: Build Kernel
     - name: Build Kernel
       env:
       env:
         SOURCE_DATE_EPOCH: ${{ env.SOURCE_DATE_EPOCH }}
         SOURCE_DATE_EPOCH: ${{ env.SOURCE_DATE_EPOCH }}
         KBUILD_BUILD_TIMESTAMP: ${{ env.KBUILD_BUILD_TIMESTAMP }}
         KBUILD_BUILD_TIMESTAMP: ${{ env.KBUILD_BUILD_TIMESTAMP }}
       uses: ./.github/actions/build-kernel
       uses: ./.github/actions/build-kernel
 
 
+    - name: Display system disk usage
+      run: |
+        echo "=== Disk usage summary ==="
+        df -h
+        echo ""
+
     - name: Post-build cache stats
     - name: Post-build cache stats
       id: post-cache-stats
       id: post-cache-stats
       run: |
       run: |