mirror of
https://github.com/tuskyapp/Tusky
synced 2025-02-03 18:07:46 +01:00
Populate gradle build cache on each push to develop (#3904)
The build cache is used in ci.yml to speed up builds, but it needs to be populated by building code that's been merged.
This commit is contained in:
parent
d5e2ce9608
commit
49fd2c8478
28
.github/workflows/populate-gradle-build-cache.yml
vendored
Normal file
28
.github/workflows/populate-gradle-build-cache.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# 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'
|
||||
|
||||
- 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
|
Loading…
x
Reference in New Issue
Block a user