-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (44 loc) · 1.2 KB
/
ci.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
name: CI
on:
pull_request: # Need to run on pull-requests, otherwise PRs from forks don't run
push:
branches:
- master
jobs:
static_analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: Swatinem/[email protected]
- uses: dprint/[email protected]
- run: cargo clippy --workspace --all-targets -- -D warnings
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install Rust
uses: actions-rs/[email protected]
with:
toolchain: 1.40.0 # MSRV
override: true
profile: minimal
- uses: Swatinem/[email protected]
- run: cargo build
test:
strategy:
matrix:
rust: [ stable, nightly ]
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- name: Install Rust ${{ matrix.rust }}
uses: actions-rs/[email protected]
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- uses: Swatinem/[email protected]
- run: brew install automake
if: matrix.os == 'macos-latest'
- run: cargo test