This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
77 lines (72 loc) · 2.12 KB
/
cont_integration.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
72
73
74
75
76
77
on: [push, pull_request]
name: CI
jobs:
build-test-android:
name: Build and test android targets
runs-on: macos-10.15
strategy:
matrix:
include:
- target: x86_64-linux-android
test: true
api: 28
arch: x86_64
- target: i686-linux-android
test: true
api: 28
arch: x86
- target: aarch64-linux-android
- target: armv7-linux-androideabi
env:
BUILD_TARGETS: ${{ matrix.target }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set default toolchain
run: rustup default stable
- name: Set profile
run: rustup set profile minimal
- name: Add target
run: rustup target add ${{ matrix.target }}
- name: Build
run: ./gradlew :android:build
- name: Android emulator test
if: ${{ matrix.test == true }}
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api }}
arch: ${{ matrix.arch }}
script: ./gradlew :android:connectedDebugAndroidTest
build-all-android:
name: Build all android targets
runs-on: ubuntu-18.04
env:
BUILD_TARGETS: aarch64,armv7,x86_64,i686
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set default toolchain
run: rustup default stable
- name: Set profile
run: rustup set profile minimal
- name: Add targets
run: rustup target add x86_64-linux-android i686-linux-android aarch64-linux-android armv7-linux-androideabi
- name: Build
run: ./gradlew :android:build
rust-fmt:
name: Rust fmt
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./native-libs
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set default toolchain
run: rustup default ${{ matrix.rust }}
- name: Set profile
run: rustup set profile minimal
- name: Add rustfmt
run: rustup component add rustfmt
- name: Check fmt
run: cargo fmt --all -- --check