Skip to content

Commit

Permalink
add back qpm dependency caching across builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwasyx committed Nov 18, 2023
1 parent cd868c4 commit 1894d6f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build-ndk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1894d6f

Please sign in to comment.