Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a5a01dc97 | ||
|
|
01dcb4705d | ||
|
|
6508dfa8a7 | ||
|
|
ac4a267d30 |
@@ -168,13 +168,15 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
- name: Build and verify Pixel 10 APK
|
- name: Build and verify Pixel 10 APK
|
||||||
env:
|
env:
|
||||||
CARGO_BUILD_JOBS: "1"
|
CARGO_BUILD_JOBS: "2"
|
||||||
CARGO_INCREMENTAL: "0"
|
CARGO_INCREMENTAL: "0"
|
||||||
# Keep the colocated Gitea instance responsive on a small host.
|
# The previous measured run kept about 16 GiB RAM free. GeckoView's
|
||||||
JAVA_TOOL_OPTIONS: -XX:ActiveProcessorCount=1
|
# Jetifier transform needs more than a 1 GiB heap, while two workers
|
||||||
|
# still leave ample headroom for the colocated Gitea instance.
|
||||||
|
JAVA_TOOL_OPTIONS: -XX:ActiveProcessorCount=2
|
||||||
GRADLE_OPTS: >-
|
GRADLE_OPTS: >-
|
||||||
-Dorg.gradle.jvmargs=-Xmx1G
|
-Dorg.gradle.jvmargs=-Xmx4G
|
||||||
-Dorg.gradle.workers.max=1
|
-Dorg.gradle.workers.max=2
|
||||||
-Dorg.gradle.parallel=false
|
-Dorg.gradle.parallel=false
|
||||||
-Dorg.gradle.daemon=false
|
-Dorg.gradle.daemon=false
|
||||||
-Dkotlin.compiler.execution.strategy=in-process
|
-Dkotlin.compiler.execution.strategy=in-process
|
||||||
@@ -220,10 +222,13 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
exit "$build_status"
|
exit "$build_status"
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
# Gitea's artifact service implements the v3 protocol. The v4 action
|
||||||
|
# rejects non-GitHub servers with GHESNotSupportedError before upload.
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: mrbweblibre-pixel10
|
name: mrbweblibre-pixel10
|
||||||
path: apps/weblibre/build/app/outputs/flutter-apk/app-pixel10-release.apk
|
path: apps/weblibre/build/app/outputs/flutter-apk/app-pixel10-release.apk
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Remove release key
|
- name: Remove release key
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
+2
-1
@@ -32,7 +32,8 @@ the generated assets and native runtime, then run:
|
|||||||
melos run build-browser-pixel10 --no-select
|
melos run build-browser-pixel10 --no-select
|
||||||
```
|
```
|
||||||
|
|
||||||
The command produces:
|
The command asks Flutter for a split ARM64 artifact, verifies that no other
|
||||||
|
ABI is packaged, and publishes it under the stable path:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
apps/weblibre/build/app/outputs/flutter-apk/app-pixel10-release.apk
|
apps/weblibre/build/app/outputs/flutter-apk/app-pixel10-release.apk
|
||||||
|
|||||||
@@ -74,17 +74,15 @@ android {
|
|||||||
manifestPlaceholders = [appName: "WebLibre Alpha (Legacy)", enableImpeller: "false"]
|
manifestPlaceholders = [appName: "WebLibre Alpha (Legacy)", enableImpeller: "false"]
|
||||||
}
|
}
|
||||||
// Pixel 10 devices are 64-bit only and ship a 120 Hz display. Keep a
|
// Pixel 10 devices are 64-bit only and ship a 120 Hz display. Keep a
|
||||||
// separate, side-by-side installable identity for the optimized fork,
|
// separate, side-by-side installable identity for the optimized fork
|
||||||
// retain Impeller, and prevent transitive dependencies from packaging
|
// and retain Impeller. The Pixel 10 build script selects android-arm64
|
||||||
// unused 32-bit native libraries.
|
// with Flutter's ABI split; Gradle forbids combining that split with a
|
||||||
|
// second ndk.abiFilters declaration here.
|
||||||
pixel10 {
|
pixel10 {
|
||||||
dimension "track"
|
dimension "track"
|
||||||
applicationId "cc.mrblake.mrbweblibre"
|
applicationId "cc.mrblake.mrbweblibre"
|
||||||
versionNameSuffix "-pixel10"
|
versionNameSuffix "-pixel10"
|
||||||
manifestPlaceholders = [appName: "MrbWebLibre", enableImpeller: "true"]
|
manifestPlaceholders = [appName: "MrbWebLibre", enableImpeller: "true"]
|
||||||
ndk {
|
|
||||||
abiFilters "arm64-v8a"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -111,5 +111,8 @@ melos:
|
|||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
cd apps/weblibre
|
cd apps/weblibre
|
||||||
flutter build apk --release --flavor pixel10 --target-platform android-arm64 --no-tree-shake-icons
|
flutter build apk --release --flavor pixel10 --target-platform android-arm64 --split-per-abi --no-tree-shake-icons
|
||||||
|
arm64_apk="$(find build/app/outputs/flutter-apk -maxdepth 1 -type f -name '*pixel10*' -name '*arm64-v8a*' -name '*release.apk' -print -quit)"
|
||||||
|
test -n "$arm64_apk"
|
||||||
|
mv "$arm64_apk" build/app/outputs/flutter-apk/app-pixel10-release.apk
|
||||||
../../scripts/verify-pixel10-apk.sh build/app/outputs/flutter-apk/app-pixel10-release.apk
|
../../scripts/verify-pixel10-apk.sh build/app/outputs/flutter-apk/app-pixel10-release.apk
|
||||||
|
|||||||
Reference in New Issue
Block a user