forked from driftluo/tentacle
-
Notifications
You must be signed in to change notification settings - Fork 24
78 lines (72 loc) · 1.67 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Github Action
on:
pull_request: # trigger on pull requests
push:
branches:
- master # trigger on push to master
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux, macos, windows]
include:
- build: linux
os: ubuntu-latest
rust: 1.46.0
- build: macos
os: macos-latest
rust: 1.46.0
- build: windows
os: windows-latest
rust: 1.46.0
steps:
- uses: actions/checkout@v2
- name: Build
run: |
make build
make examples
make bench_p2p
- name: Run tests
timeout-minutes: 40
run: make test
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Format check
run: |
rustup component add rustfmt
make fmt
clippy_check:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clippy check
run: |
rustup component add clippy
make clippy
features_check:
name: Features check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Features check
run: |
echo "stable" > rust-toolchain
rustup target add wasm32-unknown-unknown
rustup target add wasm32-wasip1
make features-check
fuzz_test:
name: Fuzz
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fuzz test
run: |
rustup install nightly
cargo +nightly install cargo-fuzz
make fuzz