mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
Build benchmark APK as signed release instead of debug
Switches the benchmark CI workflow from assembleBenchmarkDebug to assembleBenchmarkRelease so the per-commit APK is R8/minified and not debuggable (no debug overhead). The release APK is signed with the same release secrets used by create-release.yml so it stays installable, and the benchmark applicationId suffix keeps it side-by-side with production. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015X6g3nwsWu6HbuwpA2ALu8
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
name: Benchmark APK
|
||||
|
||||
# Builds the `benchmark` flavor APK on every push so the changes in each commit
|
||||
# can be downloaded, installed, and reviewed. The benchmark flavor uses a distinct
|
||||
# applicationId suffix, so it installs side-by-side with a production build.
|
||||
# can be downloaded, installed, and reviewed. Built as a signed *release* APK
|
||||
# (R8/minify enabled, not debuggable) so it has no debug overhead. The benchmark
|
||||
# flavor uses a distinct applicationId suffix, so it installs side-by-side with a
|
||||
# production build.
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -42,13 +44,24 @@ jobs:
|
||||
- name: Create keystore.properties
|
||||
run: touch keystore.properties
|
||||
|
||||
- name: Build benchmark APK
|
||||
run: ./gradlew assembleBenchmarkDebug --no-daemon --stacktrace
|
||||
- name: Build benchmark release APK
|
||||
run: ./gradlew assembleBenchmarkRelease --no-daemon --stacktrace
|
||||
|
||||
- name: Sign benchmark APK
|
||||
uses: r0adkll/sign-android-release@v1
|
||||
with:
|
||||
releaseDirectory: app/build/outputs/apk/benchmark/release
|
||||
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
||||
alias: ${{ secrets.KEY_ALIAS }}
|
||||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||
env:
|
||||
BUILD_TOOLS_VERSION: "34.0.0"
|
||||
|
||||
- name: Upload benchmark APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: amber-benchmark-${{ github.sha }}
|
||||
path: app/build/outputs/apk/benchmark/debug/app-benchmark-universal-debug.apk
|
||||
path: app/build/outputs/apk/benchmark/release/app-benchmark-universal-release-unsigned-signed.apk
|
||||
retention-days: 14
|
||||
if-no-files-found: error
|
||||
|
||||
Reference in New Issue
Block a user