mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 09:58:01 +00:00
ci: Run oss-fuzz build stage during CI.
The oss-fuzz project builds specific OVS fuzzing code located in the tests/oss-fuzz/ directory of our repository. However, this code is not currently built as part of our CI pipeline, creating a potential risk that changes in the main OVS code could break the oss-fuzz integration. This commit addresses that by ensuring the fuzzing code is built during CI, preventing potential issues. The additional build step takes approximately 4 minutes. Acked-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Simon Horman <horms@ovn.org> Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
This commit is contained in:
parent
2bf609f70b
commit
5c42db83b1
26
.github/workflows/build-and-test.yml
vendored
26
.github/workflows/build-and-test.yml
vendored
@ -388,6 +388,32 @@ jobs:
|
|||||||
- name: build
|
- name: build
|
||||||
run: ./.ci/linux-build.sh
|
run: ./.ci/linux-build.sh
|
||||||
|
|
||||||
|
build-oss-fuzz:
|
||||||
|
name: build oss-fuzz fuzzers
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout OVS
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Checkout oss-fuzz
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: google/oss-fuzz
|
||||||
|
path: oss-fuzz
|
||||||
|
|
||||||
|
- name: Build oss-fuzz image
|
||||||
|
run: |
|
||||||
|
cd oss-fuzz
|
||||||
|
python infra/helper.py build_image openvswitch --no-pull
|
||||||
|
|
||||||
|
- name: Build oss-fuzz fuzzers
|
||||||
|
run: |
|
||||||
|
cd oss-fuzz
|
||||||
|
python infra/helper.py build_fuzzers --sanitizer address \
|
||||||
|
--engine afl --architecture x86_64 openvswitch $GITHUB_WORKSPACE
|
||||||
|
|
||||||
build-osx:
|
build-osx:
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
|
Loading…
x
Reference in New Issue
Block a user