-
Notifications
You must be signed in to change notification settings - Fork 72
64 lines (51 loc) · 1.56 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: build
on:
push:
branches:
- master
pull_request:
types: [ opened, labeled, unlabeled, synchronize ]
env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
jobs:
android:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version:
- 17
steps:
- name: Checkout Project
uses: actions/[email protected]
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-home-cache-cleanup: true
- run: ./gradlew --version
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Setup Java ${{ matrix.java-version }}
uses: actions/[email protected]
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
- name: Setup Android SDK
uses: android-actions/[email protected]
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build APK
run: ./gradlew assembleDebug -s
- name: Upload Artifacts
uses: actions/[email protected]
if: always()
with:
name: open-quartz-${{ github.workflow }}-${{ github.run_id }}
path: |
gdk/location/build/outputs
gdk/camera-app/build/outputs
gdk/glass-memo/build/outputs
gdk/hello-glass/build/outputs
gdk/voice-example/build/outputs
sdk/camera-preview/build/outputs
if-no-files-found: warn