Browse Source

Simplify ccache conditionals in build workflow

jimsterino98 4 months ago
parent
commit
53c6928f98
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .github/workflows/build.yml

+ 4 - 4
.github/workflows/build.yml

@@ -103,11 +103,11 @@ jobs:
 #            bcache-${{ runner.os }}-${{ inputs.build_type }}-
 
       - name: Install ccache
-        if: inputs.build_type == 'make' && inputs.cache == 'true'
+        if: inputs.cache == 'true'
         run: sudo apt-get update && sudo apt-get install -y ccache
         
       - name: Export ccache + determinism
-        if: inputs.build_type == 'make' && inputs.cache == 'true'
+        if: inputs.cache == 'true'
         run: |
           CACHE_DIR="${{ github.workspace }}/.ccache"
           mkdir -p "$CACHE_DIR"
@@ -136,7 +136,7 @@ jobs:
           done
 
       - name: restore ccache
-        if: inputs.build_type == 'make' && inputs.cache == 'true'
+        if: inputs.cache == 'true'
         uses: actions/cache@v4
         with:
           path: ${{ env.CCACHE_DIR }}
@@ -146,7 +146,7 @@ jobs:
             ccache-${{ runner.os }}-
             
       - name: Ensure ccache is used
-        if: inputs.build_type == 'make' && inputs.cache == 'true'
+        if: inputs.cache == 'true'
         run: |
           echo "/usr/lib/ccache" >> $GITHUB_PATH
           echo "CC='ccache clang'" >> $GITHUB_ENV