Skip to content

Commit 06d2b08

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

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/docker.yml

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

33
on:
44
schedule:
5-
- cron: '0 5 * * *'
5+
- cron: "0 5 * * *"
6+
push:
67

78
permissions:
89
contents: read # to fetch code (actions/checkout)
910

1011
jobs:
1112
build:
12-
1313
runs-on: ubuntu-latest
14-
1514
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
15+
- uses: actions/checkout@v6
16+
- name: Build image
17+
run: |
18+
cd reproducible-builds
19+
docker build -t signal-android .
20+
- name: Test build
21+
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)