forked from bitcoin-wallet/bitcoin-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
71 lines (66 loc) · 2.13 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
variables:
ANDROID_HOME: $PWD/android-sdk
reference:
image: debian:bookworm-slim
before_script:
- apt-get update
- apt-get -y install ca-certificates buildah
# switch to iptables legacy, as GitLab CI doesn't support nftables
- apt-get -y install --no-install-recommends iptables
- update-alternatives --set iptables /usr/sbin/iptables-legacy
script:
- buildah build --file build.Containerfile --output build .
after_script:
- sha256sum build/*
artifacts:
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- build/**
bullseye-jdk11:
image: debian:bullseye-backports
script:
- apt-get update
- apt-get -y install openjdk-11-jdk-headless gradle sdkmanager
- yes | sdkmanager --licenses >/dev/null || true
- gradle build --stacktrace
- gradle --version
artifacts:
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- wallet/build/outputs/apk/**/*.apk
bookworm-jdk17:
image: debian:bookworm-slim
script:
- apt-get update
- apt-get -y install openjdk-17-jdk-headless gradle sdkmanager
- yes | sdkmanager --licenses >/dev/null || true
- gradle build --stacktrace
- gradle --version
artifacts:
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- wallet/build/outputs/apk/**/*.apk
jammy-jdk11:
image: ubuntu:jammy
script:
- apt-get update
- apt-get -y install openjdk-11-jdk-headless gradle sdkmanager
- yes | sdkmanager --licenses >/dev/null || true
- gradle build --stacktrace
- gradle --version
artifacts:
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- wallet/build/outputs/apk/**/*.apk
lunar-jdk17:
image: ubuntu:lunar
script:
- apt-get update
- apt-get -y install openjdk-17-jdk-headless gradle sdkmanager
- yes | sdkmanager --licenses >/dev/null || true
- gradle build --stacktrace
- gradle --version
artifacts:
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- wallet/build/outputs/apk/**/*.apk