2020-11-24 00:10:57 +08:00
|
|
|
name: GitHub CI
|
|
|
|
|
2020-12-16 16:39:31 +08:00
|
|
|
on: [pull_request, push]
|
2020-11-24 00:10:57 +08:00
|
|
|
|
2020-11-30 02:45:39 +08:00
|
|
|
# for some reason, this does not work:
|
|
|
|
# variables:
|
|
|
|
# BUILDOPTS: "-j4"
|
|
|
|
# HARNESS_JOBS: "${HARNESS_JOBS:-4}"
|
|
|
|
|
|
|
|
# for some reason, this does not work:
|
|
|
|
# before_script:
|
|
|
|
# - make="make -s"
|
|
|
|
|
2020-11-24 00:10:57 +08:00
|
|
|
jobs:
|
2020-12-18 04:55:07 +08:00
|
|
|
check_update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
|
|
|
run: ./config --strict-warnings && perl configdata.pm --dump
|
|
|
|
- name: make build_generated
|
|
|
|
run: make -s build_generated
|
|
|
|
- name: make update
|
|
|
|
run: make -s update
|
|
|
|
- name: git diff
|
|
|
|
run: git diff --exit-code
|
|
|
|
|
|
|
|
check_docs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
|
|
|
run: ./config --strict-warnings && perl configdata.pm --dump
|
|
|
|
- name: make build_generated
|
|
|
|
run: make -s build_generated
|
|
|
|
- name: make doc-nits
|
|
|
|
run: make doc-nits
|
|
|
|
|
2020-11-24 00:10:57 +08:00
|
|
|
basic_gcc:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
2020-12-01 16:44:35 +08:00
|
|
|
run: ./config --strict-warnings && perl configdata.pm --dump
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make -s -j4
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make test
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
2020-11-24 00:10:57 +08:00
|
|
|
|
|
|
|
basic_clang:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
2020-12-01 16:44:35 +08:00
|
|
|
run: CC=clang ./config --strict-warnings && perl configdata.pm --dump
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make -s -j4
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make test
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
2020-11-24 00:10:57 +08:00
|
|
|
|
|
|
|
minimal:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
2020-12-02 00:15:45 +08:00
|
|
|
run: ./config --strict-warnings no-bulk no-pic no-asm -DOPENSSL_NO_SECURE_MEMORY -DOPENSSL_SMALL_FOOTPRINT && perl configdata.pm --dump
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make -s -j4
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make test
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
2020-11-24 00:10:57 +08:00
|
|
|
|
2020-12-18 22:39:50 +08:00
|
|
|
no-deprecated:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
|
|
|
run: ./config --strict-warnings no-deprecated && perl configdata.pm --dump
|
|
|
|
- name: make
|
|
|
|
run: make -s -j4
|
|
|
|
- name: make test
|
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
|
|
|
|
2021-02-08 09:02:52 +08:00
|
|
|
non-caching:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
|
|
|
run: ./config enable-asan enable-ubsan no-cached-fetch && perl configdata.pm --dump
|
|
|
|
- name: make
|
|
|
|
run: make -s -j4
|
|
|
|
- name: make test
|
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0 TESTS="-test_fuzz* -test_ssl_* -test_evp -test_cmp_http -test_store -test_enc -[01][0-9]"
|
|
|
|
|
2020-11-24 00:10:57 +08:00
|
|
|
sanitizers:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
2020-12-03 23:23:00 +08:00
|
|
|
run: ./config --debug enable-asan enable-ubsan enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 && perl configdata.pm --dump
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make -s -j4
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make test
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0
|
2020-11-24 00:10:57 +08:00
|
|
|
|
2021-01-28 01:23:13 +08:00
|
|
|
threads_sanitizer:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
|
|
|
run: CC=clang ./config --strict-warnings -fsanitize=thread && perl configdata.pm --dump
|
|
|
|
- name: make
|
|
|
|
run: make -s -j4
|
|
|
|
- name: make test
|
|
|
|
run: make TESTS=test_threads test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
|
|
|
|
2020-11-24 00:10:57 +08:00
|
|
|
enable_non-default_options:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
2020-12-01 16:44:35 +08:00
|
|
|
run: ./config --strict-warnings no-ec enable-ssl-trace enable-zlib enable-zlib-dynamic enable-crypto-mdebug enable-crypto-mdebug-backtrace enable-egd && perl configdata.pm --dump
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make -s -j4
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make test
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
2020-11-24 00:10:57 +08:00
|
|
|
|
2020-12-03 23:23:00 +08:00
|
|
|
legacy:
|
2020-11-24 00:10:57 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
2021-01-19 22:59:22 +08:00
|
|
|
run: ./config -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 && perl configdata.pm --dump
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make -s -j4
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make test
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
2020-11-24 00:10:57 +08:00
|
|
|
|
|
|
|
buildtest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: config
|
2020-12-01 16:44:35 +08:00
|
|
|
run: ./config no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make -s -j4
|
2020-11-24 00:10:57 +08:00
|
|
|
- name: make test
|
2020-11-30 02:45:39 +08:00
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
2021-01-23 18:57:08 +08:00
|
|
|
|
|
|
|
out-of-source-and-install:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: extra preparations
|
|
|
|
run: |
|
|
|
|
mkdir ./build
|
|
|
|
mkdir ./install
|
|
|
|
- name: config
|
|
|
|
run: ../config --strict-warnings --prefix=$(cd ../install; pwd) && perl configdata.pm --dump
|
|
|
|
working-directory: ./build
|
|
|
|
- name: make
|
|
|
|
run: make -s -j4
|
|
|
|
working-directory: ./build
|
|
|
|
- name: make test
|
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
|
|
|
working-directory: ./build
|
|
|
|
- name: make install
|
|
|
|
run: make install
|
|
|
|
working-directory: ./build
|
2021-03-04 01:26:22 +08:00
|
|
|
external-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: package installs
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -yq install bison dejagnu gettext keyutils ldap-utils libldap2-dev libkeyutils-dev python3 python3-paste python3-pyrad slapd tcl-dev tcsh python3-virtualenv virtualenv
|
|
|
|
- name: config
|
|
|
|
run: ./config --strict-warnings --debug no-afalgeng enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 enable-external-tests && perl configdata.pm --dump
|
|
|
|
- name: make
|
|
|
|
run: make -s -j4
|
|
|
|
- name: make test
|
|
|
|
run: BORING_RUNNER_DIR=$(pwd)/boringssl/ssl/test/runner make test TESTS="test_external*"
|