Przeglądaj źródła

Update cache condition for build type in workflow

jimsterino98 1 miesiąc temu
rodzic
commit
716ed69f8e
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      .github/workflows/build.yml

+ 2 - 1
.github/workflows/build.yml

@@ -89,13 +89,14 @@ jobs:
           testing: false
 
       - name: Setup more Swap (for LTO)
+        if: inputs.build_type == 'make'
         uses: thejerrybao/setup-swap-space@v1   # or pierotofy/set-swap-space
         with:
           swap-size-gb: 25          # 10-24 GB is common for heavy LTO
         # swap-space-path: /mnt/swapfile   # optional
 
       - name: Parse branch for cache keys
-        if: inputs.cache == 'true'
+        if: inputs.cache == 'true' && inputs.build_type == 'make'
         uses: ./.github/actions/parse-branch
         with:
          branch: ${{ inputs.branch }}