File tree Expand file tree Collapse file tree
android/fdroid-build/metadata Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 run : |
6464 git fetch --no-tags origin 'refs/tags/android/*:refs/tags/android/*'
6565
66- - name : Lower available memory for gradle
67- run : |
68- sed -i 's|^org\.gradle\.jvmargs=.*|org.gradle.jvmargs=-Xmx4096M -Dkotlin.daemon.jvm.options\\="-Xmx4096M"|' \
69- android/gradle.properties
70-
7166 - name : Build app
67+ env :
68+ GRADLE_OPTS : ' -Dorg.gradle.jvmargs=-Xmx4096M -Dkotlin.daemon.jvm.options="-Xmx4096M"'
7269 run : ./building/containerized-build.sh android --oss-only
7370
7471 - name : Upload apks
@@ -172,6 +169,8 @@ jobs:
172169 - uses : cachix/install-nix-action@v31
173170
174171 - name : Build app
172+ env :
173+ GRADLE_OPTS : ' -Dorg.gradle.jvmargs=-Xmx4096M -Dkotlin.daemon.jvm.options="-Xmx4096M"'
175174 run : nix develop .#android -c buildRelease
176175
177176 - name : Upload apks
@@ -209,9 +208,10 @@ jobs:
209208
210209 - name : Compare apk against source of truth
211210 working-directory : ./artifacts
212- run : diff \
213- apk-container/app-oss-prod-release-unsigned.apk \
214- ${{ matrix.artifact}}/app-oss-prod-release-unsigned.apk
211+ run : >-
212+ diff
213+ apk-container/app-oss-prod-release-unsigned.apk
214+ ${{ matrix.artifact }}/app-oss-prod-release-unsigned.apk
215215
216216 # Included in this workflow since it's the only place
217217 # release artifacts are built. Should eventually be moved.
Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ Builds:
4444 - sed -i -e '/billing/d' ../settings.gradle.kts
4545 - sed -i -e '/projects.lib.billing/d' build.gradle.kts
4646 - sed -i '/\"desktop\//d' ../../Cargo.toml
47- # This is to increase stability of verification builds, not required for official fdroid builds
48- - sed -i 's/8192M/4096M/g' ../gradle.properties
4947 scanignore :
5048 - android/rust-android-gradle-plugin/plugin/build.gradle.kts
5149 build :
5250 - NDK_PATH="$$NDK$$" source ../fdroid-build/env.sh
5351 - echo $NDK_TOOLCHAIN_DIR "$$NDK$$"
52+ # This is to increase stability of verification builds, not required for official fdroid builds
53+ - export GRADLE_OPTS='-Dorg.gradle.jvmargs=-Xmx4096M -Dkotlin.daemon.jvm.options="-Xmx4096M"'
5454 - ../build.sh --oss-only --skip-clean-check
5555 ndk : 27.3.13750724
5656
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ CARGO_REGISTRY_VOLUME_NAME=${CARGO_REGISTRY_VOLUME_NAME:-"cargo-registry"}
1616GRADLE_CACHE_VOLUME_NAME=${GRADLE_CACHE_VOLUME_NAME:- " gradle-cache" }
1717CONTAINER_RUNNER=${CONTAINER_RUNNER:- " podman" }
1818PLAY_CREDENTIALS_PATH=${PLAY_CREDENTIALS_PATH:- " " }
19+ GRADLE_OPTS=${GRADLE_OPTS:- " " }
1920
2021SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
2122REPO_DIR=" $( cd " $SCRIPT_DIR /.." && pwd ) "
@@ -53,4 +54,5 @@ exec "$CONTAINER_RUNNER" run --rm -it \
5354 -v " $CARGO_REGISTRY_VOLUME_NAME :/root/.cargo/registry:Z" \
5455 " ${optional_gradle_cache_volume[@]} " \
5556 " ${optional_play_credentials_file[@]} " \
57+ ${GRADLE_OPTS: +-e GRADLE_OPTS=" $GRADLE_OPTS " } \
5658 " $container_image_name " bash -c " $* "
You can’t perform that action at this time.
0 commit comments