Try to use caching on github

This commit is contained in:
OMGeeky
2023-03-26 12:42:26 +02:00
committed by GitHub
parent 898f21de99
commit cd26b9c800

View File

@@ -13,6 +13,24 @@ jobs:
runs-on: ubuntu-latest
steps:
# used to cache dependencies with a timeout
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
shell: bash
- name: Cache Buildozer global directory
uses: actions/cache@v2
with:
path: .buildozer_global
key: buildozer-global-${{ hashFiles('src/buildozer.spec') }} # Replace with your path
- uses: actions/cache@v2
with:
path: .buildozer
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('src/buildozer.spec') }}
- name: Checkout
uses: actions/checkout@v2