From 9c95a82ab1762b2eedfa8fec0ae93256802592fa Mon Sep 17 00:00:00 2001 From: Scott Todd Date: Wed, 31 Jul 2024 11:32:12 -0700 Subject: [PATCH] Try ccache-action. --- .github/workflows/build_and_test_android.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test_android.yml b/.github/workflows/build_and_test_android.yml index 4d3eb9d03c716..cec54812e92ed 100644 --- a/.github/workflows/build_and_test_android.yml +++ b/.github/workflows/build_and_test_android.yml @@ -81,7 +81,10 @@ jobs: with: # Must match the subset of versions built in pkgci_build_packages. python-version: "3.11" - + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + key: ${{ github.job }} - name: Setup base venv run: | python -m venv ${VENV_DIR} @@ -117,6 +120,10 @@ jobs: env: IREE_TARGET_BUILD_DIR: build-android-arm_64 IREE_HOST_BIN_DIR: ${{ env.VENV_DIR }}/bin + IREE_READ_REMOTE_CCACHE: 0 + IREE_WRITE_REMOTE_CCACHE: 0 + IREE_READ_LOCAL_CCACHE: 1 + IREE_WRITE_LOCAL_CCACHE: 1 BUILD_PRESET: test run: build_tools/cmake/build_android.sh # run: |