mirror of
https://github.com/accelforce/Yuito
synced 2024-12-22 21:28:08 +01:00
41951c906c
Expectation is that these will result in faster builds by disabling options (like the gradle daemon) that benefit long-lived processes but do not benefit ephemeral build workers.
35 lines
869 B
YAML
35 lines
869 B
YAML
# 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:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
|
|
- 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
|
|
|
|
- uses: gradle/gradle-build-action@v2
|
|
with:
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
|
|
|
|
- name: Run app:buildGreenDebug
|
|
run: ./gradlew app:buildGreenDebug
|