File tree Expand file tree Collapse file tree 1 file changed +22
-16
lines changed Expand file tree Collapse file tree 1 file changed +22
-16
lines changed Original file line number Diff line number Diff line change 1
1
name : Rust PR
2
2
3
3
on :
4
- push :
5
- branches :
6
- - master
7
4
pull_request : {}
8
5
9
6
jobs :
@@ -50,26 +47,35 @@ jobs:
50
47
image : docker://rust:1.52.1-buster
51
48
steps :
52
49
- uses : actions/checkout@v2
53
- # Iterate through all subcrates to ensure each compiles indpendently .
54
- - run : for d in $(for toml in $(find . -name Cargo.toml) ; do echo ${toml%/*} ; done | sort -r ) ; do echo "# $d" ; (cd $d ; cargo check --all-targets) ; done
50
+ # Iterate through all (non-fuzzer) sub-crates to ensure each compiles independently .
51
+ - run : for d in $(for toml in $(find . -mindepth 2 - name Cargo.toml -not -path '*/fuzz/*' ) ; do echo ${toml%/*} ; done | sort -r ) ; do echo "# $d" ; (cd $d ; cargo check --all-targets) ; done
55
52
56
- build-fuzz :
53
+ test :
54
+ timeout-minutes : 15
55
+ runs-on : ubuntu-latest
56
+ steps :
57
+ - uses : actions/checkout@v2
58
+ - run : make test
59
+
60
+ fuzzers :
57
61
timeout-minutes : 40
58
62
runs-on : ubuntu-latest
59
63
container :
60
64
image : docker://rust:1.52.1-buster
65
+ strategy :
66
+ matrix :
67
+ dir :
68
+ - addr
69
+ - app/inbound
70
+ - dns
71
+ - proxy/http
72
+ - tls
73
+ - transport-header
61
74
steps :
62
75
- uses : actions/checkout@v2
63
76
- run : rustup toolchain add nightly
64
77
- run : cargo install cargo-fuzz
65
- # Iterate through all fuzz crates to ensure each compiles indpendently .
66
- - run : for d in $(find . -name fuzz | sort -r) ; do echo "# $d" ; (cd $d ; cargo +nightly fuzz build) ; done
67
- # Error if the repo isn't clean (i.e. because lockfiles were modified).
78
+ # Iterate through all fuzz crates to ensure each compiles independently .
79
+ - run : cd linkerd/${{matrix.dir}}/ fuzz && cargo +nightly fuzz build
80
+ # Error if the repo isn't clean (i.e. because lock files were modified).
68
81
- run : git status && git diff-index --quiet HEAD
69
-
70
- test :
71
- timeout-minutes : 15
72
- runs-on : ubuntu-latest
73
- steps :
74
- - uses : actions/checkout@v2
75
- - run : make test
You can’t perform that action at this time.
0 commit comments