Skip to content

Commit ed5dfbb

Browse files
committed
Fix memory usage in reproducible-build GitHub workflow
1 parent 0c102b0 commit ed5dfbb

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
name: Reproducible Build Check
1+
name: Check reproducible-build Dockerfile
22

33
on:
44
schedule:
5-
- cron: '0 5 * * *'
5+
- cron: "0 5 * * *"
66

77
permissions:
88
contents: read # to fetch code (actions/checkout)
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
14-
1513
steps:
16-
- uses: actions/checkout@v4
17-
- name: Build image
18-
run: cd reproducible-builds && docker build -t signal-android . && cd ..
19-
20-
- name: Test build
21-
run: docker run --rm -v $(pwd):/project -w /project signal-android ./gradlew clean assemblePlayProdRelease
14+
- uses: actions/checkout@v6
15+
- name: Build image
16+
run: |
17+
cd reproducible-builds
18+
docker build -t signal-android .
19+
- name: Test build
20+
run: docker run --memory=12g --rm -v "$(pwd)":/project -w /project signal-android ./gradlew --no-daemon --max-workers=1 -Dorg.gradle.jvmargs="-Xmx4g -XX:MaxMetaspaceSize=512m" -Dkotlin.compiler.execution.strategy=in-process bundlePlayProdRelease

0 commit comments

Comments
 (0)