Skip to content

Commit

Permalink
Fix Github Action build
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed Aug 2, 2024
1 parent 87ed698 commit 4b6d5fa
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,21 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout the project
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17

- name: Prepare cached external dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
key: addons_external_${{ hashFiles('.github/actions/download-externals-action/download.sh') }}
path: |
Expand All @@ -30,7 +35,7 @@ jobs:
- name: Build the project
run: /usr/bin/env sh ./gradlew assembleDebug
- name: Upload APKs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
retention-days: 60
name: apk
Expand All @@ -40,10 +45,10 @@ jobs:
release:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout the project
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Delete previous release
Expand All @@ -60,7 +65,7 @@ jobs:
git push -f origin latest_build
- name: Download project artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: apk
- name: Stage upload directory
Expand Down

0 comments on commit 4b6d5fa

Please sign in to comment.