fix(ci): constrain Android build resources
This commit is contained in:
@@ -142,7 +142,6 @@ jobs:
|
|||||||
# Go writes verbose compiler progress to stderr. Gitea's act runner
|
# Go writes verbose compiler progress to stderr. Gitea's act runner
|
||||||
# otherwise labels every one of those harmless lines as "ERROR".
|
# otherwise labels every one of those harmless lines as "ERROR".
|
||||||
run: melos run build-go-runtime --no-select 2>&1
|
run: melos run build-go-runtime --no-select 2>&1
|
||||||
|
|
||||||
- name: Reclaim disk before Android build
|
- name: Reclaim disk before Android build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -164,13 +163,16 @@ jobs:
|
|||||||
echo "At least 8 GiB of free runner disk is required before the Android build; only $((available_kib / 1024 / 1024)) GiB is available." >&2
|
echo "At least 8 GiB of free runner disk is required before the Android build; only $((available_kib / 1024 / 1024)) GiB is available." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build and verify Pixel 10 APK
|
- name: Build and verify Pixel 10 APK
|
||||||
env:
|
env:
|
||||||
|
# Keep the colocated Gitea instance responsive on a small host.
|
||||||
|
JAVA_TOOL_OPTIONS: -XX:ActiveProcessorCount=1
|
||||||
GRADLE_OPTS: >-
|
GRADLE_OPTS: >-
|
||||||
-Dorg.gradle.jvmargs=-Xmx2G
|
-Dorg.gradle.jvmargs=-Xmx1G
|
||||||
-Dorg.gradle.workers.max=2
|
-Dorg.gradle.workers.max=1
|
||||||
|
-Dorg.gradle.parallel=false
|
||||||
-Dorg.gradle.daemon=false
|
-Dorg.gradle.daemon=false
|
||||||
|
-Dkotlin.compiler.execution.strategy=in-process
|
||||||
run: melos run build-browser-pixel10 --no-select
|
run: melos run build-browser-pixel10 --no-select
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user