-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (45 loc) · 1.14 KB
/
rust.yml
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
name: Rust
on:
pull_request:
paths:
- .github/workflows/rust.yml
- "**.toml"
- "**.rs"
push:
branches:
- develop
paths:
- .github/workflows/rust.yml
- "**.toml"
- "**.rs"
jobs:
build:
name: Rust ${{ matrix.os }} ${{ matrix.rust }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust:
- stable
- beta
- nightly
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --tests
continue-on-error: ${{ matrix.rust == 'nightly' }}
- name: Build for examples
run: cargo build --verbose
working-directory: examples
- name: Run tests for examples
run: cargo test --verbose --tests
continue-on-error: ${{ matrix.rust == 'nightly' }}
working-directory: examples