Skip to content

Commit 959f90a

Browse files
committed
Merge ci.yaml with newly created ci.yml
1 parent 1c2fa6d commit 959f90a

File tree

2 files changed

+40
-53
lines changed

2 files changed

+40
-53
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: Continuous integration
22

33
on:
44
push:
@@ -10,11 +10,44 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
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
1629

1730
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

0 commit comments

Comments
 (0)