File tree Expand file tree Collapse file tree 3 files changed +22
-29
lines changed Expand file tree Collapse file tree 3 files changed +22
-29
lines changed Original file line number Diff line number Diff line change 15
15
- ubuntu-18.04
16
16
tool :
17
17
- mainline
18
+ - ci_oss
18
19
steps :
19
20
- name : Install dependencies (Ubuntu)
20
21
run : >-
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -ex
4
+
5
+ PROJECT_NAME=curl
6
+
7
+ # Clone the oss-fuzz repository
8
+ git clone https://github.com/google/oss-fuzz.git /tmp/ossfuzz
9
+
10
+ # Work out which branch to clone from, inside Docker
11
+ BRANCH=${GITHUB_REF}
12
+
13
+ # Modify the oss-fuzz Dockerfile so that we're checking out the current reference on CI.
14
+ sed -i " s@RUN git clone --depth 1 https://github.com/curl/curl-fuzzer.git /src/curl_fuzzer@RUN git config --global remote.origin.fetch '+refs/pull/*:refs/remotes/origin/pull/*' \&\& git clone https://github.com/curl/curl-fuzzer.git /src/curl_fuzzer \&\& cd /src/curl_fuzzer \&\& git checkout -b ${BRANCH} @" /tmp/ossfuzz/projects/${PROJECT_NAME} /Dockerfile
15
+
16
+ # Try and build the fuzzers
17
+ pushd /tmp/ossfuzz
18
+ python3 infra/helper.py build_image --pull ${PROJECT_NAME}
19
+ python3 infra/helper.py build_fuzzers ${PROJECT_NAME}
20
+ python3 infra/helper.py check_build ${PROJECT_NAME} --engine libfuzzer --sanitizer address --architecture x86_64
21
+ popd
You can’t perform that action at this time.
0 commit comments