-
Notifications
You must be signed in to change notification settings - Fork 43
57 lines (54 loc) · 1.22 KB
/
main.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
name: CI
on:
# Only run when merging to master, or open/synchronize/reopen a PR.
push:
branches:
- master
- staging
- trying
pull_request:
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: ["stable", "beta"]
build_flags: ["", "--cfg ammonia_unstable"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@master
- name: Set toolchain
run: |
rustup set profile minimal
rustup override set ${{ matrix.rust }}
- name: Test
run: cargo test
env:
RUSTFLAGS: ${{ matrix.build_flags }}
msrv:
name: MSRV
runs-on: ubuntu-latest
strategy:
matrix:
build_flags: ["", "--cfg ammonia_unstable"]
steps:
- uses: actions/checkout@master
- name: Set toolchain
run: |
rustup set profile minimal
rustup override set 1.60.0
- name: Check
run: cargo check --lib --all-features
env:
RUSTFLAGS: ${{ matrix.build_flags }}
ci-success:
name: ci
if: ${{ success() }}
needs:
- test
- msrv
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0