Skip to content

Commit

Permalink
Upgraded pipelines to use Java17
Browse files Browse the repository at this point in the history
  • Loading branch information
spacecowboy committed Jul 28, 2023
1 parent db852d0 commit bf0601a
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: setup JDK
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'

- name: prepare for build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android_pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- name: setup JDK
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'

# This initializes gradle and sets up caching. Default version is the wrapper version.
- name: gradle build
uses: gradle/gradle-build-action@v2
with:
arguments: classes packageDebugAndroidTest :app:lint check
arguments: build packageDebugAndroidTest :app:lint check
51 changes: 51 additions & 0 deletions .github/workflows/branch_apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: PR Checks

on:
push:
branches:
- upgrades

jobs:
signed_apk:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: perform the checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0

# Verify the SHA-sum
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: setup JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: prepare for build
shell: bash
run: ./prepare_for_build.sh
env:
SERVICEACCOUNTJSON: ${{ secrets.SERVICEACCOUNTJSON }}
KEYSTOREPASSWORD: ${{ secrets.KEYSTOREPASSWORD }}
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYPASSWORD: ${{ secrets.KEYPASSWORD }}
KEYALIAS: ${{ secrets.KEYALIAS }}

- name: gradle build
uses: gradle/gradle-build-action@v2
with:
arguments: assemble

- name: upload the generated files
uses: actions/upload-artifact@v3
if: always()
with:
retention-days: 7
name: artifacts
path: app/build/outputs/apk
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: setup JDK
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'

- name: prepare for build
Expand Down

0 comments on commit bf0601a

Please sign in to comment.