Skip to content

Commit adc1dbd

Browse files
committed
Move workflow memory limit to GRADLE_OPTS
1 parent 0f615a3 commit adc1dbd

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/android-reproducible-builds.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,9 @@ jobs:
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

android/fdroid-build/metadata/net.mullvad.mullvadvpn.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)