File tree Expand file tree Collapse file tree 2 files changed +38
-33
lines changed Expand file tree Collapse file tree 2 files changed +38
-33
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,46 @@ name: Continuous integration
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- run-tests :
7
- name : Run tests
8
- runs-on : ubuntu-latest
6
+ ci :
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ matrix :
10
+ os :
11
+ - ubuntu-latest
12
+ - macOS-latest
13
+ toolchain :
14
+ - stable
15
+ - beta
16
+ - nightly
17
+ target :
18
+ - arm-linux-androideabi
19
+ - armv7-linux-androideabi
20
+ - aarch64-linux-android
21
+ - i686-linux-android
22
+
9
23
steps :
10
24
- uses : actions/checkout@v2
11
- - uses : actions-rs/toolchain@v1
25
+
26
+ - name : Install Rust ${{ matrix.toolchain }}
27
+ uses : actions-rs/toolchain@v1
12
28
with :
13
29
profile : minimal
14
- toolchain : stable
15
- override : true
16
- - uses : actions-rs/cargo@v1
30
+ toolchain : ${{ matrix.toolchain }}
31
+ target : ${{ matrix.target }}
32
+
33
+ - name : Cargo check
34
+ uses : actions-rs/cargo@v1
35
+ with :
36
+ command : check
37
+ args : --target ${{ matrix.target }}
38
+
39
+ - name : Generate docs
40
+ uses : actions-rs/cargo@v1
41
+ with :
42
+ command : doc
43
+
44
+ - name : Run tests
45
+ uses : actions-rs/cargo@v1
17
46
with :
18
- command : test
47
+ command : test
48
+ args : --target ${{ matrix.target }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments