From ba09ac09e4ebfd3a35758db6d1d6e924d8606e5f Mon Sep 17 00:00:00 2001 From: Damontecres Date: Fri, 31 Oct 2025 12:13:48 -0400 Subject: [PATCH] Save build cache on main --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bf4cde07..cc6d85a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,10 +56,25 @@ jobs: echo "LATEST_TAG=$LATEST_TAG" >> "$GITHUB_ENV" echo "VERSION_NAME=$VERSION_NAME" >> "$GITHUB_ENV" echo "TAG_NAME=$TAG_NAME" >> "$GITHUB_ENV" + - name: Load ffmpeg module cache + id: cache_ffmpeg_module + uses: actions/cache/restore@v4 + with: + path: | + app/libs + key: ${{ runner.os }}-ffmpeg-${{ hashFiles('**/libs.versions.toml', '**/build_ffmpeg_decoder.sh') }} - name: Build ffmpeg decoder id: ffmpeg-decoder + if: steps.cache_ffmpeg_module.outputs.cache-hit != 'true' run: | ./build_ffmpeg_decoder.sh "${{ env.ANDROID_SDK_ROOT }}/ndk/${{ env.NDK_VERSION }}" + - name: Save ffmpeg module cache + id: cache_ffmpeg_module_save + uses: actions/cache/save@v4 + with: + path: | + app/libs + key: ${{ steps.cache_ffmpeg_module.outputs.cache-primary-key }} - name: Build release app id: build env: