forked from google/horologist
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.5 KB
/
build_nightly.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 & test (nightly release)
on:
schedule:
- cron: '0 2 * * *' # 2am UTC
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
lfs: 'true'
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Generate cache key
run: ./checksum.sh checksum.txt
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}
- name: Build (Release)
run: |
./gradlew --scan --stacktrace \
assembleRelease
- name: Code analysis
run: |
./gradlew --scan --stacktrace \
lintRelease
- name: Upload test results and reports
if: always()
uses: actions/upload-artifact@v4
with:
name: build-results
path: |
**/build/test-results/*
**/build/reports/*
- name: Upload apks
if: always()
uses: actions/upload-artifact@v4
with:
name: apks
path: |
**/build/outputs/apk/release/*.apk