File tree Expand file tree Collapse file tree 2 files changed +30
-19
lines changed
Expand file tree Collapse file tree 2 files changed +30
-19
lines changed Original file line number Diff line number Diff line change 11name : Event CI
22
3- on : [push, pull_request]
3+ on : [pull_request]
44
55concurrency :
66 group : ${{ github.workflow }}-${{ github.ref }}
1212 steps :
1313 - name : Checkout repository
1414 uses : actions/checkout@v4
15+
16+ - name : Install Toolchain
17+ uses : actions-rs/toolchain@v1
18+ with :
19+ profile : minimal
20+ toolchain : stable
21+ override : true
22+ components : rustfmt, clippy
1523
16- - name : Rustfmt
24+ - name : Cargo Format
1725 uses : actions-rs/cargo@v1
1826 with :
1927 command : fmt
Original file line number Diff line number Diff line change 11name : Smoke-Test Fuzz Targets
22
3- on : [push, pull_request]
3+ on : [pull_request]
44
55jobs :
66 fuzz :
7- runs-on : ubuntu-latest
8-
97 env :
108 CARGO_FUZZ_VERSION : 0.13.0
119 FUZZ_TIME : 180
@@ -14,18 +12,23 @@ jobs:
1412 matrix :
1513 include :
1614 - fuzz_target : fuzz_string
17-
15+ runs-on : ubuntu-latest
1816 steps :
19- - uses : actions/checkout@v4
20-
21- - run : rustup toolchain install nightly
22- - run : rustup default nightly
23- - uses : actions/cache@v4
24- with :
25- path : ${{ runner.tool_cache }}/cargo-fuzz
26- key : cargo-fuzz-bin-${{ env.CARGO_FUZZ_VERSION }}
27- - run : echo "${{ runner.tool_cache }}/cargo-fuzz/bin" >> $GITHUB_PATH
28- - run : cargo install --root "${{ runner.tool_cache }}/cargo-fuzz" --version ${{ env.CARGO_FUZZ_VERSION }} cargo-fuzz --locked
29-
30- - run : cd fuzz
31- - run : cargo fuzz run ${{ matrix.fuzz_target }} -- -max_total_time=${{ env.FUZZ_TIME }} --release
17+ - name : Setup
18+ uses : actions/checkout@v4
19+
20+ - uses : actions-rs/toolchain@v1
21+ with :
22+ profile : minimal
23+ toolchain : nightly
24+ override : true
25+ components : cargo-fuzz
26+
27+ - uses : actions-rs/cargo@v1
28+ with :
29+ command : install
30+ args : cargo-fuzz --version ${{ env.CARGO_FUZZ_VERSION }}
31+
32+ - name : Fuzz
33+ working-directory : fuzz
34+ run : cargo fuzz run ${{ matrix.fuzz_target }} --release -- -max_total_time=${{ env.FUZZ_TIME }}
You can’t perform that action at this time.
0 commit comments