Skip to content

Commit dbbcc29

Browse files
committed
test
1 parent ab64488 commit dbbcc29

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-19
lines changed

.github/workflows/build_and_test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Event CI
22

3-
on: [push, pull_request]
3+
on: [pull_request]
44

55
concurrency:
66
group: ${{ github.workflow }}-${{ github.ref }}
@@ -12,8 +12,16 @@ jobs:
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

.github/workflows/fuzz_tests.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Smoke-Test Fuzz Targets
22

3-
on: [push, pull_request]
3+
on: [pull_request]
44

55
jobs:
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 }}

0 commit comments

Comments
 (0)