Kaynağa Gözat

Disable bazel cache setup in build.yml

Comment out bazel cache in workflow, and only use cache for make builds. bazel builds build common only except for mtk and exynos.
jimsterino98 3 ay önce
ebeveyn
işleme
cb8e7f12db
1 değiştirilmiş dosya ile 18 ekleme ve 18 silme
  1. 18 18
      .github/workflows/build.yml

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

@@ -85,21 +85,21 @@ jobs:
         with:
          branch: ${{ inputs.branch }}
 
-      - name: set up bazel cache dir
-        if: inputs.build_type == 'Bazel' && inputs.cache == 'true'
-        run: |
-          BCACHE_DIR="${{ github.workspace }}/.cache/bazel-disk-kernel"
-          mkdir -p "$BCACHE_DIR"
-          echo "BCACHE_DIR=$BCACHE_DIR" >> $GITHUB_ENV
-
-      - name: set up bazel cache
-        if: inputs.build_type == 'Bazel' && inputs.cache == 'true'
-        uses: actions/cache@v4
-        with:
-         path: ${{ env.BCACHE_DIR }}
-         key: bcache-${{ runner.os }}-${{ inputs.build_type }}-${{ env.FULL_BRANCH }}
-         restore-keys: |
-            bcache-${{ runner.os }}-${{ inputs.build_type }}-${{ env.FULL_BRANCH }}
+#      - name: set up bazel cache dir
+#        if: inputs.build_type == 'Bazel' && inputs.cache == 'true'
+#        run: |
+#          BCACHE_DIR="${{ github.workspace }}/.cache/bazel-disk-kernel"
+#          mkdir -p "$BCACHE_DIR"
+#          echo "BCACHE_DIR=$BCACHE_DIR" >> $GITHUB_ENV
+
+ #     - name: set up bazel cache
+ #       if: inputs.build_type == 'Bazel' && inputs.cache == 'true'
+ #       uses: actions/cache@v4
+ #       with:
+ #        path: ${{ env.BCACHE_DIR }}
+ #        key: bcache-${{ runner.os }}-${{ inputs.build_type }}-${{ env.FULL_BRANCH }}
+ #        restore-keys: |
+ #           bcache-${{ runner.os }}-${{ inputs.build_type }}-${{ env.FULL_BRANCH }}
 
       - name: Install ccache
         if: inputs.cache == 'true' && inputs.build_type == 'make'
@@ -275,9 +275,9 @@ jobs:
          android_version: ${{ inputs.android_version }}
          kernel_version: ${{ inputs.kernel_version }}
 
-      - name: ensure bazel cache is set to be used
-        if: inputs.build_type == 'Bazel' && inputs.cache == 'true'
-        uses: ./.github/actions/use-bazcache
+#      - name: ensure bazel cache is set to be used
+#        if: inputs.build_type == 'Bazel' && inputs.cache == 'true'
+#        uses: ./.github/actions/use-bazcache
 
       - name: change variables to ccache
         if: inputs.cache == 'true' && inputs.build_type == 'make'