-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 889 Bytes
/
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
name: CI
on:
push:
branches:
- master
env:
RUST_BACKTRACE: 1
RUSTFLAGS: -Dwarnings
jobs:
Linux-Format:
name: Linux-Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: which cargo && cargo version && clang --version && openssl version && which cmake && cmake --version
- run: make format && git diff --quiet || (git diff; echo Please make format and run tests before creating a PR; exit 1)
- run: make clippy || (echo Please fix the clippy error; exit 1)
Linux-CI:
strategy:
matrix:
include:
- host: ubuntu-latest
profile:
suffix:
name: Linux-Stable${{ matrix.suffix }}
runs-on: ${{ matrix.host }}
steps:
- uses: actions/checkout@v2
- run: which cargo && cargo version && clang --version && openssl version
- run: env FAIL_POINT=1 make test