Skip to content

Commit

Permalink
Merge pull request #2986 from kimsuelim/improve_build
Browse files Browse the repository at this point in the history
Remove -XX:MaxPermSize option
  • Loading branch information
2dust authored Apr 8, 2024
2 parents 66f92c6 + 703965a commit 19a1093
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Setup Android environment
uses: android-actions/setup-android@v3


- name: Build dependencies
run: |
Expand All @@ -53,8 +53,7 @@ jobs:
- name: Build APK
run: |
cd ${{ github.workspace }}/V2rayNG
chmod 777 *
sed -i 's/org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8/org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8/' ${{ github.workspace }}/V2rayNG/gradle.properties
chmod 755 gradlew
./gradlew assembleDebug
- name: Upload APK
Expand Down
2 changes: 1 addition & 1 deletion V2rayNG/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ android.useAndroidX=true
android.enableJetifier=true
kotlin.code.style=official
android.nonTransitiveRClass=true
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Empty file modified V2rayNG/gradlew
100644 → 100755
Empty file.

0 comments on commit 19a1093

Please sign in to comment.