CI: slim Flutter SDK for the interop job; APK only on app changes, Gradle cached

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Krzysztof Rudnicki 2026-10-02 15:08:47 +02:00
parent 83b9d5c4c7
commit a6d5688eb7
2 changed files with 12 additions and 3 deletions

View File

@ -69,11 +69,10 @@ jobs:
uv pip install --quiet --python .freedays-venv/bin/python .utils/crdt-sync uv pip install --quiet --python .freedays-venv/bin/python .utils/crdt-sync
uv pip install --quiet --python .freedays-venv/bin/python --no-deps .utils/freedays uv pip install --quiet --python .freedays-venv/bin/python --no-deps .utils/freedays
- uses: subosito/flutter-action@v2 - uses: kuhyx/utils/flutter-setup@flutter-setup-v1
with: with:
flutter-version: 3.47.6 flutter-version: 3.47.6
channel: stable working-directory: phone_app
cache: true
- name: Dart writes, Python replays, both must agree - name: Dart writes, Python replays, both must agree
run: FREEDAYS_PYTHON="$PWD/.freedays-venv/bin/python" bash scripts/free_days_interop/check.sh run: FREEDAYS_PYTHON="$PWD/.freedays-venv/bin/python" bash scripts/free_days_interop/check.sh

View File

@ -3,6 +3,14 @@ name: release-apk
on: on:
push: push:
branches: [main] branches: [main]
# A publisher, not a gate: build only when something that ends up in
# the APK changed. versionCode is the commit count, so skipped pushes
# still leave it monotonic.
paths:
- 'phone_app/**'
- '.fvmrc'
- '.versioncode-offset'
- '.github/workflows/release-apk.yml'
# Lets a release be rebuilt from the current main without a dummy commit. # Lets a release be rebuilt from the current main without a dummy commit.
workflow_dispatch: workflow_dispatch:
@ -74,6 +82,8 @@ jobs:
with: with:
distribution: temurin distribution: temurin
java-version: "17" java-version: "17"
# ~/.gradle caches + wrapper, keyed on the Gradle files.
cache: gradle
- uses: subosito/flutter-action@v2 - uses: subosito/flutter-action@v2
with: with: