54 lines
1.0 KiB
YAML
54 lines
1.0 KiB
YAML
name: Continuous integration
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macOS-latest
|
|
toolchain:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
target:
|
|
- arm-linux-androideabi
|
|
- armv7-linux-androideabi
|
|
- aarch64-linux-android
|
|
- i686-linux-android
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Rust ${{ matrix.toolchain }}
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ matrix.toolchain }}
|
|
target: ${{ matrix.target }}
|
|
|
|
- name: Build
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
|
|
- name: Generate docs
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: doc
|
|
|
|
- name: Run tests
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|