Merge pull request #2 from OMGeeky/OMGeeky-gh-actions-cache-1

Try to use caching on github
This commit is contained in:
OMGeeky
2023-03-26 12:57:35 +02:00
committed by GitHub

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