forked from rust-mobile/android_logger-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.23 KB
/
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
name: Continuous integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
toolchain:
- stable
- beta
- nightly
target:
- arm-linux-androideabi
- armv7-linux-androideabi
- aarch64-linux-android
- i686-linux-android
features:
- ""
- --no-default-features
- --all-features
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
components: rustfmt, clippy
- run: cargo fmt --check
- run: cargo clippy --target=${{ matrix.target }} ${{ matrix.features }} -- -Dwarnings
- run: cargo build --target=${{ matrix.target }} ${{ matrix.features }}
- run: cargo doc --target=${{ matrix.target }} ${{ matrix.features }}
env:
RUSTDOCFLAGS: -Dwarnings
# Temporary test non-target only.
# TODO: Test in emulator or something.
- run: cargo test