A shared Compose Multiplatform client for Android, desktop and web on the native mood-first API. - Bearer login with persisted, restorable sessions. - Mood grid and full editor (create, settings, seeds, delete). - Server-driven radio sessions with automatic started/completed/skipped events and prefetching. - Add to current mood or choose another mood from the player. - Library search, original MP3 downloads, offline playback of downloads. - Offline cache of moods, songs and the last sync revision. - Platform audio: Media3 on Android, MP3SPI on desktop, HTML audio on web. - Platform storage: filesystem on Android/desktop, localStorage on web. - Desktop tests for API parsing, errors and cache persistence. - Gitea CI image with Android SDK 35, build pipeline and tagged releases.
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
name: CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- "v*"
|
|
pull_request:
|
|
|
|
env:
|
|
# Built by scripts/build-ci-image.sh from ci/Dockerfile.
|
|
CI_IMAGE: gitea.tap-tap.win/taptap/audiomanager-client-ci:1
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: gitea.tap-tap.win/taptap/audiomanager-client-ci:1
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Unit tests
|
|
run: gradle :composeApp:desktopTest --console=plain
|
|
|
|
build:
|
|
needs: test
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
container:
|
|
image: gitea.tap-tap.win/taptap/audiomanager-client-ci:1
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build Android, desktop and web
|
|
run: |
|
|
gradle \
|
|
:composeApp:assembleDebug \
|
|
:composeApp:packageUberJarForCurrentOS \
|
|
:composeApp:wasmJsBrowserDistribution \
|
|
--console=plain
|
|
|
|
- name: Collect artifacts
|
|
run: |
|
|
mkdir -p dist
|
|
cp composeApp/build/outputs/apk/debug/composeApp-debug.apk dist/AudioManager.apk
|
|
cp composeApp/build/compose/jars/*.jar dist/AudioManager-desktop.jar
|
|
(cd composeApp/build/dist/wasmJs/productionExecutable && zip -qr "$GITHUB_WORKSPACE/dist/AudioManager-web.zip" .)
|
|
|
|
- name: Publish release assets
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: scripts/publish-release.sh dist
|