瀏覽代碼

Add cache condition to Bazel and make build types

jimsterino98 4 月之前
父節點
當前提交
d06bf7fe50
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .github/workflows/build.yml

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

@@ -266,11 +266,11 @@ jobs:
          kernel_version: ${{ inputs.kernel_version }}
 
       - name: ensure bazel cache is used
-        if: inputs.build_type == 'Bazel'
+        if: inputs.build_type == 'Bazel' && inputs.cache == 'true'
         uses: ./.github/actions/use-bazcache
 
       - name: change variables to ccache
-        if: inputs.build_type == 'make'
+        if: inputs.build_type == 'make' && inputs.cache == 'true'
         uses: ./.github/actions/use-ccache
 
       - name: Build