mirror of
https://github.com/pachli/pachli-android.git
synced 2025-02-09 00:18:56 +01:00
Abstract common CI setup tasks (setting up Java, Gradle, etc) in to a single action that can be used by all CI workflows. Run the lint, test, and assemble CI tasks in parallel for each variant rather than in series, which cuts ~ 7 minutes (approx. 50%) off the CI runtime. Update code in checks and core/navigation to fix new tests.
29 lines
706 B
YAML
29 lines
706 B
YAML
# 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
|