Build & test (nightly release) #718
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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 |