Skip to content

Commit 7927d6c

Browse files
committed
Add GitHub workflow: Build Android application.
1 parent 7ba0285 commit 7927d6c

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,22 @@ jobs:
77
- uses: actions/checkout@v2
88
- name: Docker build
99
run: ./docker-build.sh
10+
- name: Build Android application
11+
run: |
12+
docker run \
13+
--rm \
14+
--cap-drop=all \
15+
--security-opt no-new-privileges \
16+
--read-only \
17+
-u dev \
18+
--memory=3072m \
19+
--memory-swap=3072m \
20+
--memory-swappiness=0 \
21+
--env USER=dev \
22+
--tmpfs /tmp:size=16m \
23+
--tmpfs /home/dev/build:exec,size=512m \
24+
--tmpfs /home/dev/.gradle:exec,size=512m \
25+
--tmpfs /home/dev/.android:size=1m \
26+
--tmpfs /home/dev/.cargo/registry:size=16m \
27+
--entrypoint /home/dev/build-application.sh \
28+
android-rust-simd

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ ENV PATH=${PATH}:/home/dev/.cargo/bin
125125
USER root
126126

127127
COPY \
128+
scripts/build-application.sh \
128129
scripts/strip-rust.sh \
129130
scripts/script-rust-default.sh \
130131
scripts/script-rust-default-nostrip.sh \
@@ -139,6 +140,7 @@ COPY \
139140
scripts/launch-app-release.sh \
140141
/home/dev/
141142
RUN chmod 555 \
143+
/home/dev/build-application.sh \
142144
/home/dev/strip-rust.sh \
143145
/home/dev/script-rust-default.sh \
144146
/home/dev/script-rust-default-nostrip.sh \

scripts/build-application.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -eux
4+
5+
./script-rust-nightly.sh
6+
./script-java.sh

0 commit comments

Comments
 (0)