-
Notifications
You must be signed in to change notification settings - Fork 17
56 lines (48 loc) · 1.3 KB
/
continuous_integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Continuous integration
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.runner_os }}
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-apple-darwin
- x86_64-pc-windows-msvc
include:
- target: x86_64-unknown-linux-gnu
runner_os: ubuntu-latest
- target: x86_64-apple-darwin
runner_os: macos-latest
- target: x86_64-pc-windows-msvc
runner_os: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Test workspace with all features enabled
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features
- name: Build workspace documentation with all features enabled
uses: actions-rs/cargo@v1
with:
command: doc
args: --workspace --all-features
- name: Build workspace in release mode with default features
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --release