Skip to content

Commit

Permalink
Use a platform-specific cache key that rotates each month
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Nov 19, 2023
1 parent 67c0adb commit 9c7d025
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/app-build-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,17 @@ jobs:
esac
echo "briefcase-data-dir=${BRIEFCASE_DIR}" | tee -a ${GITHUB_OUTPUT}
CACHE_KEY="${{ inputs.runner-os }}|${{ inputs.repository }}|${{ inputs.framework }}|${{ inputs.target-platform }}"
# For Linux builds, the cache varies by the output format
if [ "${{ startsWith(inputs.runner-os, 'ubuntu') }}" = "true" ]; then
CACHE_KEY="$CACHE_KEY|${{ inputs.target-format }}"
fi
echo "cache-key=$(date +%Y-%m)|${CACHE_KEY}" | tee -a ${GITHUB_OUTPUT}
- name: Cache Briefcase Tools
uses: actions/cache@v3.3.2
with:
key: briefcase-data|${{ inputs.runner-os }}|${{ inputs.repository }}|${{ inputs.framework }}|${{ inputs.target-platform }}|${{ inputs.target-format }}
key: briefcase-data|${{ steps.dirs.outputs.cache-key }}
path: ${{ steps.dirs.outputs.briefcase-data-dir }}

- name: Determine System python3 Version
Expand Down

0 comments on commit 9c7d025

Please sign in to comment.