seedvault/.github/workflows/client.yml
Chirayu Desai f20507fdc2 gh-actions: Upload debug apks as artifacts
Change-Id: I794a8cf20a77ed32d975a2eff834cdd703c6e35e
2022-12-30 03:43:07 +05:30

44 lines
1.2 KiB
YAML

name: Build
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Gradle dependency cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Android build cache
uses: actions/cache@v2
with:
path: |
~/.android/build-cache
key: ${{ runner.os }}-android
restore-keys: ${{ runner.os }}-android
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build
run: ./gradlew compileDebugAndroidTestSources check assemble ktlintCheck
- 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