mirror of
https://github.com/OMGeeky/Kivy-Shopping-List.git
synced 2026-02-23 15:38:26 +01:00
Merge pull request #2 from OMGeeky/OMGeeky-gh-actions-cache-1
Try to use caching on github
This commit is contained in:
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user