|
5 | 5 | # | (__| |_| | _ <| |___
|
6 | 6 | # \___|\___/|_| \_\_____|
|
7 | 7 | #
|
8 |
| -# Copyright (C) 2021, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 8 | +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. |
9 | 9 | #
|
10 | 10 | # This software is licensed as described in the file COPYING, which
|
11 | 11 | # you should have received as part of this distribution. The terms
|
|
18 | 18 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
19 | 19 | # KIND, either express or implied.
|
20 | 20 | #
|
| 21 | +# SPDX-License-Identifier: curl |
| 22 | +# |
21 | 23 | ###########################################################################
|
22 | 24 |
|
23 | 25 | # View these jobs in the browser: https://app.circleci.com/pipelines/github/curl/curl
|
24 | 26 |
|
25 |
| -# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference |
| 27 | +# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/configuration-reference/ |
26 | 28 | version: 2.1
|
27 | 29 |
|
28 | 30 | commands:
|
29 | 31 | configure:
|
30 | 32 | steps:
|
31 | 33 | - run:
|
32 | 34 | command: |
|
33 |
| - ./buildconf |
34 |
| - ./configure --enable-warnings --enable-werror --with-openssl |
| 35 | + autoreconf -fi |
| 36 | + ./configure --enable-warnings --enable-werror --with-openssl \ |
| 37 | + || { tail -1000 config.log; false; } |
| 38 | +
|
| 39 | + configure-openssl-no-verbose: |
| 40 | + steps: |
| 41 | + - run: |
| 42 | + command: | |
| 43 | + autoreconf -fi |
| 44 | + ./configure --disable-verbose --enable-werror --with-openssl \ |
| 45 | + || { tail -1000 config.log; false; } |
| 46 | +
|
| 47 | + configure-no-proxy: |
| 48 | + steps: |
| 49 | + - run: |
| 50 | + command: | |
| 51 | + autoreconf -fi |
| 52 | + ./configure --disable-proxy --enable-werror --with-openssl \ |
| 53 | + || { tail -1000 config.log; false; } |
| 54 | +
|
| 55 | + install-cares: |
| 56 | + steps: |
| 57 | + - run: |
| 58 | + command: | |
| 59 | + sudo apt-get update && sudo apt-get install -y libc-ares-dev |
| 60 | +
|
| 61 | + install-libssh: |
| 62 | + steps: |
| 63 | + - run: |
| 64 | + command: | |
| 65 | + sudo apt-get update && sudo apt-get install -y libssh-dev |
| 66 | +
|
| 67 | + install-deps: |
| 68 | + steps: |
| 69 | + - run: |
| 70 | + command: | |
| 71 | + sudo apt-get update && sudo apt-get install -y libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev python3-pip libpsl-dev |
| 72 | + sudo python3 -m pip install impacket |
| 73 | +
|
| 74 | + configure-libssh: |
| 75 | + steps: |
| 76 | + - run: |
| 77 | + command: | |
| 78 | + autoreconf -fi |
| 79 | + ./configure --enable-warnings --enable-werror --with-openssl --with-libssh \ |
| 80 | + || { tail -1000 config.log; false; } |
| 81 | +
|
| 82 | + install-wolfssl: |
| 83 | + steps: |
| 84 | + - run: |
| 85 | + command: | |
| 86 | + source .github/scripts/VERSIONS |
| 87 | + echo "Installing wolfSSL $WOLFSSL_VER" |
| 88 | + curl -LOsSf --retry 6 --retry-connrefused --max-time 999 https://github.com/wolfSSL/wolfssl/archive/v$WOLFSSL_VER-stable.tar.gz |
| 89 | + tar -xzf v$WOLFSSL_VER-stable.tar.gz |
| 90 | + cd wolfssl-$WOLFSSL_VER-stable |
| 91 | + ./autogen.sh |
| 92 | + ./configure --enable-tls13 --enable-all --enable-harden --prefix=$HOME/wssl |
| 93 | + make install |
| 94 | +
|
| 95 | + install-wolfssh: |
| 96 | + steps: |
| 97 | + - run: |
| 98 | + command: | |
| 99 | + source .github/scripts/VERSIONS |
| 100 | + echo "Installing wolfSSH $WOLFSSH_VER" |
| 101 | + curl -LOsSf --retry 6 --retry-connrefused --max-time 999 https://github.com/wolfSSL/wolfssh/archive/v$WOLFSSH_VER-stable.tar.gz |
| 102 | + tar -xzf v$WOLFSSH_VER-stable.tar.gz |
| 103 | + cd wolfssh-$WOLFSSH_VER-stable |
| 104 | + ./autogen.sh |
| 105 | + ./configure --with-wolfssl=$HOME/wssl --prefix=$HOME/wssh --enable-scp --enable-sftp --disable-examples |
| 106 | + make install |
| 107 | +
|
| 108 | + configure-cares: |
| 109 | + steps: |
| 110 | + - run: |
| 111 | + command: | |
| 112 | + autoreconf -fi |
| 113 | + ./configure --enable-warnings --enable-werror --with-openssl --enable-ares \ |
| 114 | + || { tail -1000 config.log; false; } |
| 115 | +
|
| 116 | + configure-wolfssh: |
| 117 | + steps: |
| 118 | + - run: |
| 119 | + command: | |
| 120 | + autoreconf -fi |
| 121 | + LDFLAGS="-Wl,-rpath,$HOME/wssh/lib" ./configure --enable-warnings --enable-werror --with-wolfssl=$HOME/wssl --with-wolfssh=$HOME/wssh \ |
| 122 | + || { tail -1000 config.log; false; } |
| 123 | +
|
| 124 | + configure-cares-debug: |
| 125 | + steps: |
| 126 | + - run: |
| 127 | + command: | |
| 128 | + autoreconf -fi |
| 129 | + ./configure --enable-debug --enable-werror --with-openssl --enable-ares \ |
| 130 | + || { tail -1000 config.log; false; } |
35 | 131 |
|
36 | 132 | build:
|
37 | 133 | steps:
|
38 |
| - - run: make V=1 |
39 |
| - - run: make V=1 examples |
| 134 | + - run: make -j3 V=1 |
| 135 | + - run: make -j3 V=1 examples |
40 | 136 |
|
41 | 137 | test:
|
42 | 138 | steps:
|
43 |
| - - run: make V=1 test-ci |
| 139 | + - run: make -j3 V=1 test-ci TFLAGS='-j14' |
44 | 140 |
|
45 | 141 | executors:
|
46 | 142 | ubuntu:
|
47 | 143 | machine:
|
48 |
| - image: ubuntu-2004:202010-01 |
| 144 | + image: ubuntu-2004:2024.01.1 |
49 | 145 |
|
50 | 146 | jobs:
|
51 | 147 | basic:
|
52 | 148 | executor: ubuntu
|
53 | 149 | steps:
|
54 | 150 | - checkout
|
| 151 | + - install-deps |
55 | 152 | - configure
|
56 | 153 | - build
|
57 | 154 | - test
|
58 | 155 |
|
| 156 | + no-verbose: |
| 157 | + executor: ubuntu |
| 158 | + steps: |
| 159 | + - checkout |
| 160 | + - install-deps |
| 161 | + - configure-openssl-no-verbose |
| 162 | + - build |
| 163 | + |
| 164 | + wolfssh: |
| 165 | + executor: ubuntu |
| 166 | + steps: |
| 167 | + - checkout |
| 168 | + - install-deps |
| 169 | + - install-wolfssl |
| 170 | + - install-wolfssh |
| 171 | + - configure-wolfssh |
| 172 | + - build |
| 173 | + |
| 174 | + no-proxy: |
| 175 | + executor: ubuntu |
| 176 | + steps: |
| 177 | + - checkout |
| 178 | + - install-deps |
| 179 | + - configure-no-proxy |
| 180 | + - build |
| 181 | + - test |
| 182 | + |
| 183 | + cares: |
| 184 | + executor: ubuntu |
| 185 | + steps: |
| 186 | + - checkout |
| 187 | + - install-deps |
| 188 | + - install-cares |
| 189 | + - configure-cares |
| 190 | + - build |
| 191 | + - test |
| 192 | + |
| 193 | + libssh: |
| 194 | + executor: ubuntu |
| 195 | + steps: |
| 196 | + - checkout |
| 197 | + - install-deps |
| 198 | + - install-libssh |
| 199 | + - configure-libssh |
| 200 | + - build |
| 201 | + - test |
| 202 | + |
59 | 203 | arm:
|
60 | 204 | machine:
|
61 |
| - image: ubuntu-2004:202101-01 |
| 205 | + image: ubuntu-2004:2024.01.1 |
62 | 206 | resource_class: arm.medium
|
63 | 207 | steps:
|
64 | 208 | - checkout
|
| 209 | + - install-deps |
65 | 210 | - configure
|
66 | 211 | - build
|
67 | 212 | - test
|
68 | 213 |
|
| 214 | + arm-cares: |
| 215 | + machine: |
| 216 | + image: ubuntu-2004:2024.01.1 |
| 217 | + resource_class: arm.medium |
| 218 | + steps: |
| 219 | + - checkout |
| 220 | + - install-deps |
| 221 | + - install-cares |
| 222 | + - configure-cares-debug |
| 223 | + - build |
| 224 | + - test |
| 225 | + |
69 | 226 | workflows:
|
70 | 227 | x86-openssl:
|
71 | 228 | jobs:
|
72 | 229 | - basic
|
73 | 230 |
|
| 231 | + openssl-c-ares: |
| 232 | + jobs: |
| 233 | + - cares |
| 234 | + |
| 235 | + openssl-libssh: |
| 236 | + jobs: |
| 237 | + - libssh |
| 238 | + |
| 239 | + openssl-no-proxy: |
| 240 | + jobs: |
| 241 | + - no-proxy |
| 242 | + |
| 243 | + openssl-no-verbose: |
| 244 | + jobs: |
| 245 | + - no-verbose |
| 246 | + |
| 247 | + wolfssl-wolfssh: |
| 248 | + jobs: |
| 249 | + - wolfssh |
| 250 | + |
74 | 251 | arm-openssl:
|
75 | 252 | jobs:
|
76 | 253 | - arm
|
| 254 | + |
| 255 | + arm-openssl-c-ares: |
| 256 | + jobs: |
| 257 | + - arm-cares |
0 commit comments