File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ permissions :
4+ contents : read
5+
6+ on :
7+ pull_request :
8+ branches :
9+ - main
10+ paths-ignore :
11+ - ' **.md'
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+ concurrency :
17+ group : ${{ github.workflow }}-${{ matrix.sanitizer }}-${{ github.ref }}
18+ cancel-in-progress : true
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ sanitizer :
23+ - address
24+ - memory
25+ - undefined
26+
27+ steps :
28+ - uses : actions/checkout@v6
29+ with :
30+ repository : google/oss-fuzz
31+ path : oss-fuzz
32+
33+ - name : Patch Dockerfile to use this ref
34+ run : |
35+ sed -i "s|git clone --depth 1 --branch main https://github.com/python/library-fuzzers.git|git clone --depth 1 --branch ${{ github.head_ref }} ${{ github.event.pull_request.head.repo.clone_url }} library-fuzzers|" \
36+ oss-fuzz/projects/python3-libraries/Dockerfile
37+
38+ - name : Build fuzzers
39+ run : |
40+ cd oss-fuzz
41+ python infra/helper.py build_fuzzers python3-libraries \
42+ --engine libfuzzer \
43+ --sanitizer ${{ matrix.sanitizer }} \
44+ --architecture x86_64
45+
46+ # XXX: This may take too long?
47+ - name : Check build
48+ run : |
49+ cd oss-fuzz
50+ python infra/helper.py check_build python3-libraries \
51+ --engine libfuzzer \
52+ --sanitizer ${{ matrix.sanitizer }} \
53+ --architecture x86_64
You can’t perform that action at this time.
0 commit comments