-
-
Notifications
You must be signed in to change notification settings - Fork 684
72 lines (58 loc) · 2.38 KB
/
android_integration.yml
File metadata and controls
72 lines (58 loc) · 2.38 KB
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
72
name: "Integration - Android"
on:
workflow_dispatch:
inputs:
signal_android_branch:
description: 'Signal-Android branch to test against'
required: false
default: 'main'
type: string
env:
CARGO_TERM_COLOR: always
NDK_VERSION: 28.0.13004108
jobs:
android-integration:
name: Android Client Integration Test
runs-on: ubuntu-latest-8-cores
timeout-minutes: 60
steps:
- name: Checkout libsignal
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: libsignal
submodules: recursive
- name: Checkout Signal-Android
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: signalapp/Signal-Android
ref: ${{ inputs.signal_android_branch }}
path: Signal-Android
- run: 'echo "JAVA_HOME=$JAVA_HOME_17_X64" >> "$GITHUB_ENV"'
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
- run: |
cd libsignal
rustup toolchain install "$(cat rust-toolchain)" --profile minimal --target aarch64-linux-android,armv7-linux-androideabi,x86_64-linux-android,i686-linux-android
- name: Install protoc
run: |
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v32.0/protoc-32.0-linux-x86_64.zip
sudo unzip -o protoc-32.0-linux-x86_64.zip -d /usr/local bin/protoc
sudo unzip -o protoc-32.0-linux-x86_64.zip -d /usr/local 'include/*'
rm protoc-32.0-linux-x86_64.zip
- name: Install Android NDK
run: |
sudo "${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager" --install "ndk;${NDK_VERSION}"
echo "ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk/${NDK_VERSION}" >> "$GITHUB_ENV"
- name: Run Android's QA checks with local libsignal
run: ./gradlew qa --no-daemon --stacktrace -PlibsignalClientPath=../libsignal -F OFF
working-directory: Signal-Android
shell: bash # Explicitly setting the shell turns on pipefail in GitHub Actions
- name: Upload test results
if: failure()
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: test-results
path: |
Signal-Android/**/build/reports/
Signal-Android/**/build/test-results/
retention-days: 7