forked from jeffparsons/rangemap
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (60 loc) · 1.5 KB
/
ci.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
56
57
58
59
60
61
62
63
name: CI
on:
push:
branches: [master, staging, trying]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
toolchain:
# Don't forget to update the README when bumping MSRV.
- 1.56.1
- stable
- beta
- nightly
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
default: true
profile: minimal
- name: stable test without serde
uses: actions-rs/cargo@v1
if: matrix.toolchain != 'nightly'
with:
command: test
# We just need to make sure we haven't broken it in some obvious way
# either with or without serde enabled, so only test with serde on stable.
- name: stable test with serde
uses: actions-rs/cargo@v1
if: matrix.toolchain == 'stable'
with:
command: test
args: --features serde1
- name: nightly test
uses: actions-rs/cargo@v1
if: matrix.toolchain == 'nightly'
with:
command: test
args: --features nightly
ci-success:
name: ci
if: ${{ success() }}
needs:
- test
runs-on: ubuntu-20.04
steps:
- name: CI succeeded
run: exit 0