|
| 1 | +name: GitHub CI |
| 2 | + |
| 3 | +on: [pull_request, push] |
| 4 | + |
| 5 | +# for some reason, this does not work: |
| 6 | +# variables: |
| 7 | +# BUILDOPTS: "-j4" |
| 8 | + |
| 9 | +# not implemented for v1.1.1: HARNESS_JOBS: "${HARNESS_JOBS:-4}" |
| 10 | + |
| 11 | +# for some reason, this does not work: |
| 12 | +# before_script: |
| 13 | +# - make="make -s" |
| 14 | + |
| 15 | +jobs: |
| 16 | + check_update: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + - name: config |
| 21 | + run: ./config --strict-warnings && perl configdata.pm --dump |
| 22 | + - name: make build_generated |
| 23 | + run: make -s build_generated |
| 24 | + - name: make update |
| 25 | + run: make -s update |
| 26 | + - name: git diff |
| 27 | + run: git diff --exit-code |
| 28 | + |
| 29 | + check_docs: |
| 30 | + runs-on: ubuntu-latest |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v2 |
| 33 | + - name: config |
| 34 | + run: ./config --strict-warnings && perl configdata.pm --dump |
| 35 | + - name: make build_generated |
| 36 | + run: make -s build_generated |
| 37 | + - name: make doc-nits |
| 38 | + run: make doc-nits |
| 39 | + |
| 40 | + basic_gcc: |
| 41 | + runs-on: ubuntu-latest |
| 42 | + steps: |
| 43 | + - uses: actions/checkout@v2 |
| 44 | + - name: config |
| 45 | + run: ./config --strict-warnings && perl configdata.pm --dump |
| 46 | + - name: make |
| 47 | + run: make -s -j4 |
| 48 | + - name: make test |
| 49 | + run: make test |
| 50 | + |
| 51 | + basic_clang: |
| 52 | + runs-on: ubuntu-latest |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v2 |
| 55 | + - name: config |
| 56 | + run: CC=clang ./config --strict-warnings && perl configdata.pm --dump |
| 57 | + - name: make |
| 58 | + run: make -s -j4 |
| 59 | + - name: make test |
| 60 | + run: make test |
| 61 | + |
| 62 | + minimal: |
| 63 | + runs-on: ubuntu-latest |
| 64 | + steps: |
| 65 | + - uses: actions/checkout@v2 |
| 66 | + - name: config |
| 67 | + run: ./config --strict-warnings no-shared no-dso no-pic no-aria no-async no-autoload-config no-blake2 no-bf no-camellia no-cast no-chacha no-cmac no-cms no-comp no-ct no-des no-dgram no-dh no-dsa no-dtls no-ec2m no-engine no-filenames no-gost no-idea no-mdc2 no-md4 no-multiblock no-nextprotoneg no-ocsp no-ocb no-poly1305 no-psk no-rc2 no-rc4 no-rmd160 no-seed no-siphash no-sm2 no-sm3 no-sm4 no-srp no-srtp no-ssl3 no-ssl3-method no-ts no-ui-console no-whirlpool no-asm -DOPENSSL_NO_SECURE_MEMORY -DOPENSSL_SMALL_FOOTPRINT && perl configdata.pm --dump |
| 68 | + - name: make |
| 69 | + run: make -s -j4 |
| 70 | + - name: make test |
| 71 | + run: make test |
| 72 | + |
| 73 | + out-of-tree_build: |
| 74 | + runs-on: ubuntu-latest |
| 75 | + steps: |
| 76 | + - uses: actions/checkout@v2 |
| 77 | + - name: setup build dir |
| 78 | + run: | |
| 79 | + set -eux |
| 80 | + mkdir -p ${myblddir:=../_build/nest/a/little/more} |
| 81 | + echo "mysrcdir=$(realpath .)" | tee -a $GITHUB_ENV |
| 82 | + echo "myblddir=$(realpath $myblddir)" | tee -a $GITHUB_ENV |
| 83 | + - name: config |
| 84 | + run: set -eux ; cd ${{ env.myblddir }} && ${{ env.mysrcdir }}/config --strict-warnings && perl configdata.pm --dump |
| 85 | + - name: make build_generated |
| 86 | + run: set -eux; cd ${{ env.myblddir }} && make -s build_generated |
| 87 | + - name: make update |
| 88 | + run: set -eux; cd ${{ env.myblddir }} && make update |
| 89 | + - name: make |
| 90 | + run: set -eux; cd ${{ env.myblddir }} && make -s -j4 |
| 91 | + - name: make test (minimal subset) |
| 92 | + run: set -eux; cd ${{ env.myblddir }} && make test TESTS='0[0-9]' |
| 93 | + |
| 94 | + no-deprecated: |
| 95 | + runs-on: ubuntu-latest |
| 96 | + steps: |
| 97 | + - uses: actions/checkout@v2 |
| 98 | + - name: config |
| 99 | + run: ./config --strict-warnings no-deprecated && perl configdata.pm --dump |
| 100 | + - name: make |
| 101 | + run: make -s -j4 |
| 102 | + - name: make test |
| 103 | + run: make test |
| 104 | + |
| 105 | + sanitizers: |
| 106 | + runs-on: ubuntu-latest |
| 107 | + steps: |
| 108 | + - uses: actions/checkout@v2 |
| 109 | + - name: config |
| 110 | + run: ./config --debug enable-asan enable-ubsan enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 && perl configdata.pm --dump |
| 111 | + - name: make |
| 112 | + run: make -s -j4 |
| 113 | + - name: make test |
| 114 | + run: make test OPENSSL_TEST_RAND_ORDER=0 |
| 115 | + |
| 116 | + enable_non-default_options: |
| 117 | + runs-on: ubuntu-latest |
| 118 | + steps: |
| 119 | + - uses: actions/checkout@v2 |
| 120 | + - name: config |
| 121 | + 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 |
| 122 | + - name: make |
| 123 | + run: make -s -j4 |
| 124 | + - name: make test |
| 125 | + run: make test |
| 126 | + |
| 127 | + legacy: |
| 128 | + runs-on: ubuntu-latest |
| 129 | + steps: |
| 130 | + - uses: actions/checkout@v2 |
| 131 | + - name: config |
| 132 | + 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 |
| 133 | + - name: make |
| 134 | + run: make -s -j4 |
| 135 | + - name: make test |
| 136 | + run: make test |
| 137 | + |
| 138 | + buildtest: |
| 139 | + runs-on: ubuntu-latest |
| 140 | + steps: |
| 141 | + - uses: actions/checkout@v2 |
| 142 | + - name: config |
| 143 | + run: ./config no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump |
| 144 | + - name: make |
| 145 | + run: make -s -j4 |
| 146 | + - name: make test |
| 147 | + run: make test |
0 commit comments