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
21 checks: write # for coverallsapp/github-action to create new checks
22 contents: read # for actions/checkout to fetch code
28 branch: OpenSSL_1_1_1-stable
31 extra_config: enable-fips
34 extra_config: enable-fips
37 extra_config: no-afalgeng enable-fips enable-tfo
40 runs-on: ubuntu-latest
42 - uses: actions/checkout@v4
45 ref: ${{ matrix.branches.branch }}
46 - name: cache commit id
48 echo "githubid=`/usr/bin/git log -1 --format='%H'`" >>$GITHUB_ENV
49 - name: package installs
52 sudo apt-get -yq install lcov
53 sudo apt-get -yq install bison gettext keyutils ldap-utils libldap2-dev libkeyutils-dev python3 python3-paste python3-pyrad slapd tcsh python3-virtualenv virtualenv python3-kdcproxy
54 - name: install Test2::V0 for gost_engine testing
55 uses: perl-actions/install-with-cpanm@v1
58 - name: setup hostname workaround
59 run: sudo hostname localhost
61 run: CC=gcc ./config --debug --coverage ${{ matrix.branches.extra_config }} no-asm enable-rc5 enable-md2 enable-ssl3 enable-nextprotoneg enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 no-shared enable-buildtest-c++ enable-external-tests -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
63 run: ./configdata.pm --dump
67 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} TESTS='-test_external_krb5'
68 - name: generate coverage info
69 run: lcov -d . -c -o ./lcov.info
70 - name: Coveralls upload
71 uses: coverallsapp/github-action@v2.2.1
73 github-token: ${{ secrets.github_token }}
74 git-branch: ${{ matrix.branches.branch }}
75 git-commit: ${{ env.githubid }}
76 path-to-lcov: ./lcov.info