1 # Copyright 2021-2023 The OpenSSL Project Authors. All Rights Reserved.
3 # Licensed under the Apache License 2.0 (the "License"). You may not use
4 # this file except in compliance with the License. You can obtain a copy
5 # in the file LICENSE in the source distribution or at
6 # https://www.openssl.org/source/license.html
23 config: enable-fuzz-afl no-module,
28 config: enable-fuzz-libfuzzer enable-asan enable-ubsan,
29 libs: --with-fuzzer-lib=/usr/lib/llvm-12/lib/libFuzzer.a --with-fuzzer-include=/usr/include/clang/12/include/fuzzer,
30 install: libfuzzer-12-dev,
36 config: enable-fuzz-libfuzzer enable-asan enable-ubsan -fsanitize-coverage=trace-cmp -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION,
37 libs: --with-fuzzer-lib=/usr/lib/llvm-12/lib/libFuzzer.a --with-fuzzer-include=/usr/include/clang/12/include/fuzzer,
38 extra: enable-fips enable-ec_nistp_64_gcc_128 -fno-sanitize=alignment enable-tls1_3 enable-weak-ssl-ciphers enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg,
39 install: libfuzzer-12-dev,
45 runs-on: ubuntu-latest
47 - name: install packages
50 sudo apt-get -yq --force-yes install ${{ matrix.fuzzy.install }}
51 - uses: actions/checkout@v4
55 CC=${{ matrix.fuzzy.cc }} ./config --banner=Configured no-shared \
56 ${{ matrix.fuzzy.config }} ${{ matrix.fuzzy.libs }} ${{ matrix.fuzzy.extra }}
59 run: ./configdata.pm --dump
60 - name: make with explicit linker
61 if: matrix.fuzzy.linker != ''
62 run: LDCMD=${{ matrix.fuzzy.linker }} make -s -j4
63 - name: make sans explicit linker
64 if: matrix.fuzzy.linker == ''
66 - name: make test restricted
67 if: matrix.fuzzy.tests != ''
68 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} TESTS="${{ matrix.fuzzy.tests }}"
70 if: matrix.fuzzy.tests == ''
71 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}