diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b9ec8c..b237de4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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