From 3fdd92ea351e8d482f0e0ae8c190f38e2104f302 Mon Sep 17 00:00:00 2001 From: sadorowo Date: Mon, 13 May 2024 10:22:26 +0200 Subject: [PATCH 1/2] workaround for unsupported hashFiles function --- .gitea/workflows/build_android.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build_android.yml b/.gitea/workflows/build_android.yml index fb4c8778..723bc8f7 100644 --- a/.gitea/workflows/build_android.yml +++ b/.gitea/workflows/build_android.yml @@ -33,13 +33,25 @@ jobs: java-version: '17' cache: 'gradle' + - name: Set up Go environment + uses: actions/setup-go@v3 + with: + go-version: '1.20' + + - name: Get hash of Gradle files + uses: actions/go-hashfiles@v0.0.1 + id: get-hash + with: + patterns: |- + **/*.gradle* + - name: Cache Gradle uses: actions/cache@v3 with: path: | ~/.gradle/caches ~/.gradle/wrapper - key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }} + key: gradle-${{ runner.os }}-${{ steps.get-hash.outputs.hash }} - name: Get app version id: get_version From 5886ed2bced9188ff691da720e6d710a254b8f14 Mon Sep 17 00:00:00 2001 From: sadorowo Date: Mon, 13 May 2024 10:24:11 +0200 Subject: [PATCH 2/2] update Go --- .gitea/workflows/build_android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build_android.yml b/.gitea/workflows/build_android.yml index 723bc8f7..40cf4c59 100644 --- a/.gitea/workflows/build_android.yml +++ b/.gitea/workflows/build_android.yml @@ -36,7 +36,7 @@ jobs: - name: Set up Go environment uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: '1.22' - name: Get hash of Gradle files uses: actions/go-hashfiles@v0.0.1