forked from trustwallet/wallet-core
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (49 loc) · 1.39 KB
/
android-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
name: Android CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Install system dependencies
run: |
tools/install-sys-dependencies-mac
tools/install-rust-dependencies
- name: Install Android Dependencies
run: tools/install-android-dependencies
- name: Cache internal dependencies
id: internal_cache
uses: actions/cache@v3
with:
path: build/local
key: ${{ runner.os }}-internal-${{ hashFiles('tools/install-dependencies') }}
- name: Install internal dependencies
run: tools/install-dependencies
if: steps.internal_cache.outputs.cache-hit != 'true'
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
workspaces: |
rust
- name: Generate files
run: tools/generate-files android
- name: Build Kotlin doc
run: tools/kotlin-doc
- name: Run test
run: tools/android-test
- name: Build sample app
run: tools/samples-build android
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}