Compare commits
No commits in common. "3e4e7aa524589f2989f3fc8d6aeb8c108433aa5e" and "4dac08fffee8755f62acb77a2c9bb9d276341ee4" have entirely different histories.
3e4e7aa524
...
4dac08fffe
3 changed files with 0 additions and 41 deletions
|
|
@ -1,38 +0,0 @@
|
||||||
name: Android Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release-apk:
|
|
||||||
runs-on: android-ci
|
|
||||||
env:
|
|
||||||
GRADLE_VERSION: 8.10.2
|
|
||||||
steps:
|
|
||||||
- name: Check out repository
|
|
||||||
run: |
|
|
||||||
git clone "http://forgejo:3000/${GITHUB_REPOSITORY}.git" .
|
|
||||||
git checkout "$GITHUB_SHA"
|
|
||||||
|
|
||||||
- name: Install tools
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y --no-install-recommends ca-certificates curl nodejs unzip
|
|
||||||
curl -fsSL "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" -o /tmp/gradle.zip
|
|
||||||
unzip -q /tmp/gradle.zip -d /opt
|
|
||||||
ln -s "/opt/gradle-${GRADLE_VERSION}/bin/gradle" /usr/local/bin/gradle
|
|
||||||
|
|
||||||
- name: Build installable APK
|
|
||||||
run: |
|
|
||||||
gradle --no-daemon :app:assembleDebug
|
|
||||||
mkdir -p dist
|
|
||||||
cp app/build/outputs/apk/debug/app-debug.apk "dist/calorie-ai-${GITHUB_REF_NAME}.apk"
|
|
||||||
|
|
||||||
- name: Upload APK artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: calorie-ai-apk
|
|
||||||
path: dist/*.apk
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,7 +1,6 @@
|
||||||
.gradle/
|
.gradle/
|
||||||
build/
|
build/
|
||||||
app/build/
|
app/build/
|
||||||
dist/
|
|
||||||
local.properties
|
local.properties
|
||||||
*.iml
|
*.iml
|
||||||
.idea/
|
.idea/
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,6 @@ gradle :app:assembleDebug
|
||||||
|
|
||||||
Forgejo Actions builds the debug APK on every push to `main` and uploads it as the `calorie-ai-debug-apk` artifact.
|
Forgejo Actions builds the debug APK on every push to `main` and uploads it as the `calorie-ai-debug-apk` artifact.
|
||||||
|
|
||||||
Tagged versions also build an installable APK named `calorie-ai-vX.Y.Z.apk` through the Android Release workflow.
|
|
||||||
|
|
||||||
## AI Endpoint
|
## AI Endpoint
|
||||||
|
|
||||||
The app expects an OpenAI-compatible endpoint at:
|
The app expects an OpenAI-compatible endpoint at:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue