diff --git a/.github/workflows/build-ndk.yml b/.github/workflows/build-ndk.yml index bd267a8..6f81d31 100644 --- a/.github/workflows/build-ndk.yml +++ b/.github/workflows/build-ndk.yml @@ -28,6 +28,19 @@ jobs: echo "$ANDROID_NDK_LATEST_HOME" > ${GITHUB_WORKSPACE}/ndkpath.txt cat ${GITHUB_WORKSPACE}/ndkpath.txt + - name: QPM Dependencies Cache + id: cache-qpm-deps + uses: actions/cache@v3 + env: + cache-name: cache-qpm-deps + with: + path: /home/runner/.local/share/QPM-RS/cache + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('qpm.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: QPM Rust Action uses: Fernthedev/qpm-action@main with: @@ -46,7 +59,7 @@ jobs: ls -la $HOME/.local/share/QPM-RS/cache echo qpm-cache: qpm cache list - + - name: Build run: | cd ${GITHUB_WORKSPACE} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a09cc6c..3ad66da 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,19 @@ jobs: echo "$ANDROID_NDK_LATEST_HOME" > ${GITHUB_WORKSPACE}/ndkpath.txt cat ${GITHUB_WORKSPACE}/ndkpath.txt + - name: QPM Dependencies Cache + id: cache-qpm-deps + uses: actions/cache@v3 + env: + cache-name: cache-qpm-deps + with: + path: /home/runner/.local/share/QPM-RS/cache + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('qpm.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: QPM Rust Action uses: Fernthedev/qpm-action@main with: