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