• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Continuous integration
2
3on:
4  push:
5    branches: [ master ]
6  pull_request:
7    branches: [ master ]
8
9env:
10  CARGO_TERM_COLOR: always
11
12jobs:
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
29
30    steps:
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
54