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:
|
|
|
|
name: app:buildGreenDebug
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-02-24 07:48:44 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-04 14:11:30 +02:00
|
|
|
|
2024-02-24 07:48:53 +01:00
|
|
|
- uses: actions/setup-java@v4
|
2023-08-04 14:11:30 +02:00
|
|
|
with:
|
2024-02-23 12:28:13 +01:00
|
|
|
java-version: '21'
|
2023-08-04 14:11:30 +02:00
|
|
|
distribution: 'temurin'
|
|
|
|
|
2023-08-08 23:04:29 +02:00
|
|
|
- name: Gradle Wrapper Validation
|
2024-04-21 09:35:59 +02:00
|
|
|
uses: gradle/actions/wrapper-validation@v3
|
2023-08-08 23:04:29 +02:00
|
|
|
|
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
2024-02-24 07:49:45 +01:00
|
|
|
- uses: gradle/gradle-build-action@v3
|
2023-08-04 14:11:30 +02:00
|
|
|
with:
|
|
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
|
2023-08-08 23:04:29 +02:00
|
|
|
|
2023-08-04 14:11:30 +02:00
|
|
|
- name: Run app:buildGreenDebug
|
|
|
|
run: ./gradlew app:buildGreenDebug
|