2023-08-04 14:11:30 +02:00
|
|
|
# Build the app on each push to `develop`, populating the build cache to speed
|
|
|
|
# up CI on PRs.
|
|
|
|
|
|
|
|
name: Populate build cache
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-09-05 13:28:56 +02:00
|
|
|
name: app:buildOrangeDebug
|
2023-08-04 14:11:30 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
java-version: '17'
|
|
|
|
distribution: 'temurin'
|
|
|
|
|
2023-08-08 23:04:29 +02:00
|
|
|
- name: Gradle Wrapper Validation
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
|
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
2023-08-04 14:11:30 +02:00
|
|
|
- uses: gradle/gradle-build-action@v2
|
|
|
|
with:
|
|
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
|
2023-08-08 23:04:29 +02:00
|
|
|
|
2023-09-05 13:28:56 +02:00
|
|
|
- name: Run app:buildOrangeDebug
|
|
|
|
run: ./gradlew app:buildOrangeDebug
|