Skip to content

Commit 85cde09

Browse files
committed
Move Travis checks to GitHub actions
1 parent c30e4ec commit 85cde09

File tree

2 files changed

+38
-33
lines changed

2 files changed

+38
-33
lines changed

.github/workflows/ci.yaml

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,46 @@ name: Continuous integration
33
on: [push, pull_request]
44

55
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+
923
steps:
1024
- uses: actions/checkout@v2
11-
- uses: actions-rs/toolchain@v1
25+
26+
- name: Install Rust ${{ matrix.toolchain }}
27+
uses: actions-rs/toolchain@v1
1228
with:
1329
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
1746
with:
18-
command: test
47+
command: test
48+
args: --target ${{ matrix.target }}

.travis.yml

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

0 commit comments

Comments
 (0)