From e08692008690fa29023dc077565cd93b5dfaf86b Mon Sep 17 00:00:00 2001 From: zyphlar Date: Mon, 12 Jan 2026 00:51:18 -0800 Subject: [PATCH] [ci] Add daily 3party cache and configure.sh Signed-off-by: zyphlar --- .forgejo/workflows/android-check.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/android-check.yaml b/.forgejo/workflows/android-check.yaml index e0efd8ab8..74eb1a138 100644 --- a/.forgejo/workflows/android-check.yaml +++ b/.forgejo/workflows/android-check.yaml @@ -136,12 +136,21 @@ jobs: with: fetch-depth: 200 # enough to get all commits for the current day + - name: Get date for cache key + id: date + run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + + - uses: actions/cache@v4 + with: + path: "3party" + key: 3party-cache-${{ steps.date.outputs.date }} + - name: Parallel submodules checkout shell: bash run: git submodule update --depth 1 --init --recursive --jobs=$(($(nproc) * 20)) - name: Configure ccache - uses: hendrikmuhs/ccache-action@v1.2 + uses: https://github.com/hendrikmuhs/ccache-action@v1.2 with: key: ${{ github.workflow }}-${{ matrix.flavor }} @@ -154,7 +163,9 @@ jobs: run: | cmake --version ninja --version + cd .. ./configure.sh + cd android ./gradlew -P${{ matrix.arch }} assemble${{ matrix.flavor }} - name: Upload ${{ matrix.flavor }} apk