浏览代码

ci: re-enable ccache download/upload behind use_cache

if:false blocked OnePlus proven ccache flow; wire to inputs.use_cache (default true) as in 9fc52848
TheWildJames 1 周之前
父节点
当前提交
40d76b5bf5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .github/workflows/main.yml

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

@@ -110,7 +110,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Download custom ccache once
-        if: false
+        if: inputs.use_cache
         run: |
           set -uo pipefail
           echo "::group::Download ccache"
@@ -131,7 +131,7 @@ jobs:
           fi
           echo "::endgroup::"
       - name: Upload ccache artifact
-        if: false
+        if: inputs.use_cache
         uses: actions/upload-artifact@v7
         with:
           name: ccache-binary