Skip to content

Commit f13b70c

Browse files
committed
v50
1 parent 8bdf5b6 commit f13b70c

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/github-release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Setup Java
17-
uses: actions/setup-java@v3
17+
uses: actions/setup-java@v4
1818
with:
1919
distribution: 'zulu'
2020
java-version: '17.x'
@@ -26,6 +26,16 @@ jobs:
2626
cache: true
2727
- name: Get dependencies
2828
run: flutter pub get
29+
- name: Configure Gradle for CI
30+
run: |
31+
# Increase heap size for Gradle daemon
32+
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" >> android/gradle.properties
33+
# Enable Gradle daemon and configure for CI
34+
echo "org.gradle.daemon=false" >> android/gradle.properties
35+
echo "org.gradle.parallel=true" >> android/gradle.properties
36+
echo "org.gradle.caching=true" >> android/gradle.properties
37+
# Disable incremental compilation to save memory
38+
echo "kotlin.incremental=false" >> android/gradle.properties
2939
- name: Download Android keystore
3040
id: android_keystore
3141
uses: timheuer/[email protected]
@@ -39,7 +49,9 @@ jobs:
3949
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
4050
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
4151
- name: Build APK (split per ABI)
42-
run: flutter build apk --split-per-abi --flavor prod
52+
run: flutter build apk --split-per-abi --flavor prod --release
53+
env:
54+
GRADLE_OPTS: '-Xmx4g -Dfile.encoding=UTF-8'
4355
- name: Archive build artifacts
4456
uses: actions/upload-artifact@v4
4557
with:
@@ -48,7 +60,6 @@ jobs:
4860
build/app/outputs/flutter-apk/app-arm64-v8a-prod-release.apk
4961
build/app/outputs/flutter-apk/app-armeabi-v7a-prod-release.apk
5062
build/app/outputs/flutter-apk/app-x86_64-prod-release.apk
51-
5263
release:
5364
name: Create GitHub Release
5465
needs: build

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository: https://github.com/felipebueno/stacker_news
1313
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1414
# Read more about iOS versioning at
1515
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
16-
version: 1.3.5+49
16+
version: 1.3.5+50
1717

1818
environment:
1919
sdk: ">=3.8.0 <4.0.0"

0 commit comments

Comments
 (0)