Files
subtracks/.github/workflows/build-next.yml
T
austinried c76a79c3ed ci: run the GitHub builds in the nix devshell
Drop setup-java, setup-android and the Gradle wrapper in favour of the
flake's pinned JDK, Gradle and Android SDK, restoring the Nix store with
cache-nix-action, so the release and next builds share the dev toolchain.
2026-10-08 18:52:43 +00:00

37 lines
1.1 KiB
YAML

name: Build Next
on:
push:
branches: [main]
permissions:
contents: read
env:
NIX_CONFIG: experimental-features = nix-command flakes
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1
- uses: nix-community/cache-nix-action@7df957e333c1e5da7721f60227dbba6d06080569 # v7
with:
primary-key: nix-v2-${{ hashFiles('flake.lock', '**/*.nix') }}
restore-prefixes-first-match: nix-v2-
- name: Build next builds
run: nix develop --command gradle :app:assembleDebug :app:assembleNext --no-daemon
- name: Collect next builds
run: |
cp app/build/outputs/apk/debug/app-debug.apk subtracks-next-debug.apk
cp app/build/outputs/apk/next/app-next.apk subtracks-next.apk
- name: Upload next builds
uses: actions/upload-artifact@v4
with:
name: subtracks-next
path: |
subtracks-next-debug.apk
subtracks-next.apk