2020-11-10 22:34:40 +01:00
|
|
|
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2023-10-12 08:13:34 +02:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-11-10 22:34:40 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-08-02 19:09:16 +02:00
|
|
|
- name: Checkout the code
|
|
|
|
uses: actions/checkout@v3
|
2020-11-10 22:34:40 +01:00
|
|
|
|
|
|
|
- name: Android build cache
|
2023-08-02 19:09:16 +02:00
|
|
|
uses: actions/cache@v3
|
2020-11-10 22:34:40 +01:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.android/build-cache
|
|
|
|
key: ${{ runner.os }}-android
|
|
|
|
restore-keys: ${{ runner.os }}-android
|
|
|
|
|
2023-08-02 19:09:16 +02:00
|
|
|
- name: Set up JDK 17
|
|
|
|
uses: actions/setup-java@v3
|
2020-11-10 22:34:40 +01:00
|
|
|
with:
|
2023-08-02 19:09:16 +02:00
|
|
|
distribution: 'corretto'
|
2023-08-02 18:41:27 +02:00
|
|
|
java-version: 17
|
2023-08-02 19:09:16 +02:00
|
|
|
cache: 'gradle'
|
2020-11-10 22:34:40 +01:00
|
|
|
|
|
|
|
- name: Build
|
2021-08-25 16:31:40 +02:00
|
|
|
run: ./gradlew compileDebugAndroidTestSources check assemble ktlintCheck
|
2022-12-29 23:06:03 +01:00
|
|
|
|
|
|
|
- name: Upload APKs
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: seedvault-${{ github.sha }}-apks
|
|
|
|
path: |
|
|
|
|
app/build/outputs/apk/debug/app-debug.apk
|
|
|
|
contactsbackup/build/outputs/apk/debug/contactsbackup-debug.apk
|
|
|
|
storage/demo/build/outputs/apk/debug/demo-debug.apk
|