ci: Run normal CI workflow on pushes to main (#618)

This should ensure that everything that is built as part of regular CI
can be saved to the build cache after the PR is merged.
This commit is contained in:
Nik Clayton 2024-04-15 16:02:01 +02:00 committed by GitHub
parent 71df384378
commit 189b441042
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 28 deletions

View File

@ -4,6 +4,8 @@ on:
push:
tags:
- '*'
branches:
- main
pull_request:
workflow_dispatch:

View File

@ -1,28 +0,0 @@
# Build the app on each push to `main`, populating the build cache to speed
# up CI on PRs.
name: Populate build cache
on:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
color: ["orange"]
store: ["fdroid", "github", "google"]
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: ./.github/actions/setup-build-env
with:
gradle-cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build ${{ matrix.color }}${{ matrix.store }}Debug
run: ./gradlew build${{ matrix.color }}${{ matrix.store }}Debug