Android ui upgrade (#1)
--------- Co-authored-by: intelligence <intelligence@debian.local> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
1 parent
357edf9a2d
commit
ca1437a4fa
11 files changed
+108
-51
No files matched your search
@@ -1,8 +1,6 @@
|
||||
name: Android
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
@@ -22,16 +20,11 @@ jobs:
|
||||
- uses: android-actions/setup-android@v3
|
||||
# Gitea's act resolver cannot peel the annotated v4 tag alias.
|
||||
- uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
|
||||
with:
|
||||
cache-read-only: ${{ gitea.event_name == 'pull_request' }}
|
||||
- name: Install Android SDK packages
|
||||
run: sdkmanager "platforms;android-35" "build-tools;35.0.0"
|
||||
- name: Lint and test
|
||||
working-directory: android
|
||||
run: ./gradlew --no-daemon lintDebug testDebugUnitTest
|
||||
- name: Build debug APK
|
||||
working-directory: android
|
||||
run: ./gradlew --no-daemon assembleDebug
|
||||
- name: Build signed release APK
|
||||
working-directory: android
|
||||
env:
|
||||
@@ -52,12 +45,13 @@ jobs:
|
||||
working-directory: android
|
||||
run: |
|
||||
mkdir -p ../artifacts
|
||||
cp app/build/outputs/apk/debug/app-debug.apk ../artifacts/transui-android-debug.apk
|
||||
if [ -f app/build/outputs/apk/release/app-release.apk ]; then
|
||||
cp app/build/outputs/apk/release/app-release.apk ../artifacts/transui-android-release.apk
|
||||
cd ../artifacts
|
||||
sha256sum ./*.apk > SHA256SUMS-android
|
||||
else
|
||||
echo "No release APK to publish"
|
||||
fi
|
||||
cd ../artifacts
|
||||
sha256sum ./*.apk > SHA256SUMS-android
|
||||
- name: Attach APKs to the Gitea release
|
||||
if: gitea.event_name == 'release'
|
||||
env:
|
||||
@@ -72,4 +66,4 @@ jobs:
|
||||
with:
|
||||
name: transui-android
|
||||
path: artifacts/
|
||||
if-no-files-found: error
|
||||
if-no-files-found: warn
|
||||
Reference in new issue
Block a user