Kaynağa Gözat

Add conditional checks for ccache usage in build.yml

jimsterino98 4 ay önce
ebeveyn
işleme
d76ceccf38
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      .github/workflows/build.yml

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

@@ -137,6 +137,7 @@ jobs:
           done
 
       - name: restore ccache
+        if: inputs.build_type == 'make'
         uses: actions/cache@v4
         with:
           path: ${{ env.CCACHE_DIR }}
@@ -146,6 +147,7 @@ jobs:
             ccache-${{ runner.os }}-${{ inputs.build_type }}-
             
       - name: Ensure ccache is used
+        if: inputs.build_type == 'make'
         run: |
           echo "/usr/lib/ccache" >> $GITHUB_PATH
           echo "CC='ccache clang'" >> $GITHUB_ENV