2021-06-29 22:45:13 +08:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2021-06-29 22:45:13 +08:00
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
2022-05-17 17:16:50 +08:00
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
#
|
2021-06-29 22:45:13 +08:00
|
|
|
###########################################################################
|
|
|
|
|
2021-11-16 13:00:26 +08:00
|
|
|
# View these jobs in the browser: https://app.circleci.com/pipelines/github/curl/curl
|
|
|
|
|
2024-07-13 01:23:43 +08:00
|
|
|
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/configuration-reference/
|
2021-06-11 13:50:28 +08:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
commands:
|
|
|
|
configure:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2022-03-15 17:25:25 +08:00
|
|
|
autoreconf -fi
|
2024-07-13 01:23:43 +08:00
|
|
|
./configure --enable-warnings --enable-werror --with-openssl \
|
|
|
|
|| { tail -1000 config.log; false; }
|
2021-06-11 13:50:28 +08:00
|
|
|
|
2022-01-31 19:52:29 +08:00
|
|
|
configure-openssl-no-verbose:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2022-03-15 17:25:25 +08:00
|
|
|
autoreconf -fi
|
2024-07-13 01:23:43 +08:00
|
|
|
./configure --disable-verbose --enable-werror --with-openssl \
|
|
|
|
|| { tail -1000 config.log; false; }
|
2022-01-31 19:52:29 +08:00
|
|
|
|
|
|
|
configure-no-proxy:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2022-03-15 17:25:25 +08:00
|
|
|
autoreconf -fi
|
2024-07-13 01:23:43 +08:00
|
|
|
./configure --disable-proxy --enable-werror --with-openssl \
|
|
|
|
|| { tail -1000 config.log; false; }
|
2022-01-31 19:52:29 +08:00
|
|
|
|
2022-01-31 16:41:31 +08:00
|
|
|
install-cares:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
|
|
|
sudo apt-get update && sudo apt-get install -y libc-ares-dev
|
|
|
|
|
2022-02-13 05:57:23 +08:00
|
|
|
install-libssh:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
|
|
|
sudo apt-get update && sudo apt-get install -y libssh-dev
|
|
|
|
|
2022-01-31 19:52:29 +08:00
|
|
|
install-deps:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2024-01-08 23:49:21 +08:00
|
|
|
sudo apt-get update && sudo apt-get install -y libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev python3-pip libpsl-dev
|
2023-04-17 03:42:38 +08:00
|
|
|
sudo python3 -m pip install impacket
|
2022-01-31 19:52:29 +08:00
|
|
|
|
2022-02-13 05:57:23 +08:00
|
|
|
configure-libssh:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2022-03-15 17:25:25 +08:00
|
|
|
autoreconf -fi
|
2024-07-13 01:23:43 +08:00
|
|
|
./configure --enable-warnings --enable-werror --with-openssl --with-libssh \
|
|
|
|
|| { tail -1000 config.log; false; }
|
2022-02-13 05:57:23 +08:00
|
|
|
|
2022-02-13 06:14:16 +08:00
|
|
|
install-wolfssl:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2024-05-13 22:45:30 +08:00
|
|
|
source .github/scripts/VERSIONS
|
|
|
|
echo "Installing wolfSSL $WOLFSSL_VER"
|
2023-02-13 16:04:51 +08:00
|
|
|
curl -LOsSf --retry 6 --retry-connrefused --max-time 999 https://github.com/wolfSSL/wolfssl/archive/v$WOLFSSL_VER-stable.tar.gz
|
|
|
|
tar -xzf v$WOLFSSL_VER-stable.tar.gz
|
|
|
|
cd wolfssl-$WOLFSSL_VER-stable
|
2022-02-13 06:14:16 +08:00
|
|
|
./autogen.sh
|
|
|
|
./configure --enable-tls13 --enable-all --enable-harden --prefix=$HOME/wssl
|
2022-09-12 06:04:32 +08:00
|
|
|
make install
|
2022-02-13 06:14:16 +08:00
|
|
|
|
|
|
|
install-wolfssh:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2024-05-13 22:45:30 +08:00
|
|
|
source .github/scripts/VERSIONS
|
|
|
|
echo "Installing wolfSSH $WOLFSSH_VER"
|
2023-02-13 16:04:51 +08:00
|
|
|
curl -LOsSf --retry 6 --retry-connrefused --max-time 999 https://github.com/wolfSSL/wolfssh/archive/v$WOLFSSH_VER-stable.tar.gz
|
|
|
|
tar -xzf v$WOLFSSH_VER-stable.tar.gz
|
|
|
|
cd wolfssh-$WOLFSSH_VER-stable
|
2022-02-13 06:14:16 +08:00
|
|
|
./autogen.sh
|
|
|
|
./configure --with-wolfssl=$HOME/wssl --prefix=$HOME/wssh --enable-scp --enable-sftp --disable-examples
|
2022-09-12 06:04:32 +08:00
|
|
|
make install
|
2022-02-13 06:14:16 +08:00
|
|
|
|
2022-01-31 16:41:31 +08:00
|
|
|
configure-cares:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2022-03-15 17:25:25 +08:00
|
|
|
autoreconf -fi
|
2024-07-13 01:23:43 +08:00
|
|
|
./configure --enable-warnings --enable-werror --with-openssl --enable-ares \
|
|
|
|
|| { tail -1000 config.log; false; }
|
2022-01-31 16:41:31 +08:00
|
|
|
|
2022-02-13 06:14:16 +08:00
|
|
|
configure-wolfssh:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2022-03-15 17:25:25 +08:00
|
|
|
autoreconf -fi
|
2024-07-13 01:23:43 +08:00
|
|
|
LDFLAGS="-Wl,-rpath,$HOME/wssh/lib" ./configure --enable-warnings --enable-werror --with-wolfssl=$HOME/wssl --with-wolfssh=$HOME/wssh \
|
|
|
|
|| { tail -1000 config.log; false; }
|
2022-02-13 06:14:16 +08:00
|
|
|
|
2022-01-31 17:03:15 +08:00
|
|
|
configure-cares-debug:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
command: |
|
2022-03-15 17:25:25 +08:00
|
|
|
autoreconf -fi
|
2024-07-13 01:23:43 +08:00
|
|
|
./configure --enable-debug --enable-werror --with-openssl --enable-ares \
|
|
|
|
|| { tail -1000 config.log; false; }
|
2022-01-31 17:03:15 +08:00
|
|
|
|
2021-06-11 13:50:28 +08:00
|
|
|
build:
|
|
|
|
steps:
|
2023-06-24 03:51:41 +08:00
|
|
|
- run: make -j3 V=1
|
|
|
|
- run: make -j3 V=1 examples
|
2021-06-11 13:50:28 +08:00
|
|
|
|
|
|
|
test:
|
|
|
|
steps:
|
2024-07-13 01:23:43 +08:00
|
|
|
- run: make -j3 V=1 test-ci TFLAGS='-j14'
|
2021-06-11 13:50:28 +08:00
|
|
|
|
|
|
|
executors:
|
|
|
|
ubuntu:
|
|
|
|
machine:
|
2024-02-16 08:04:40 +08:00
|
|
|
image: ubuntu-2004:2024.01.1
|
2021-06-11 13:50:28 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
basic:
|
|
|
|
executor: ubuntu
|
|
|
|
steps:
|
|
|
|
- checkout
|
2024-01-08 23:49:21 +08:00
|
|
|
- install-deps
|
2021-06-11 13:50:28 +08:00
|
|
|
- configure
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
2022-01-31 19:52:29 +08:00
|
|
|
no-verbose:
|
|
|
|
executor: ubuntu
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- install-deps
|
|
|
|
- configure-openssl-no-verbose
|
|
|
|
- build
|
|
|
|
|
2022-02-13 06:14:16 +08:00
|
|
|
wolfssh:
|
|
|
|
executor: ubuntu
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- install-deps
|
|
|
|
- install-wolfssl
|
|
|
|
- install-wolfssh
|
|
|
|
- configure-wolfssh
|
|
|
|
- build
|
|
|
|
|
2022-01-31 19:52:29 +08:00
|
|
|
no-proxy:
|
|
|
|
executor: ubuntu
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- install-deps
|
|
|
|
- configure-no-proxy
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
2022-01-31 16:41:31 +08:00
|
|
|
cares:
|
|
|
|
executor: ubuntu
|
|
|
|
steps:
|
|
|
|
- checkout
|
2024-01-08 23:49:21 +08:00
|
|
|
- install-deps
|
2022-01-31 16:41:31 +08:00
|
|
|
- install-cares
|
|
|
|
- configure-cares
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
2022-02-13 05:57:23 +08:00
|
|
|
libssh:
|
|
|
|
executor: ubuntu
|
|
|
|
steps:
|
|
|
|
- checkout
|
2024-01-08 23:49:21 +08:00
|
|
|
- install-deps
|
2022-02-13 05:57:23 +08:00
|
|
|
- install-libssh
|
|
|
|
- configure-libssh
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
2021-06-11 13:50:28 +08:00
|
|
|
arm:
|
|
|
|
machine:
|
2024-02-16 08:04:40 +08:00
|
|
|
image: ubuntu-2004:2024.01.1
|
2021-06-11 13:50:28 +08:00
|
|
|
resource_class: arm.medium
|
|
|
|
steps:
|
|
|
|
- checkout
|
2024-01-08 23:49:21 +08:00
|
|
|
- install-deps
|
2021-06-11 13:50:28 +08:00
|
|
|
- configure
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
2022-01-31 17:03:15 +08:00
|
|
|
arm-cares:
|
|
|
|
machine:
|
2024-02-16 08:04:40 +08:00
|
|
|
image: ubuntu-2004:2024.01.1
|
2022-01-31 17:03:15 +08:00
|
|
|
resource_class: arm.medium
|
|
|
|
steps:
|
|
|
|
- checkout
|
2024-01-08 23:49:21 +08:00
|
|
|
- install-deps
|
2022-01-31 17:03:15 +08:00
|
|
|
- install-cares
|
|
|
|
- configure-cares-debug
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
2021-06-11 13:50:28 +08:00
|
|
|
workflows:
|
|
|
|
x86-openssl:
|
|
|
|
jobs:
|
|
|
|
- basic
|
2022-01-31 16:41:31 +08:00
|
|
|
|
|
|
|
openssl-c-ares:
|
|
|
|
jobs:
|
|
|
|
- cares
|
2021-06-11 13:50:28 +08:00
|
|
|
|
2022-02-13 05:57:23 +08:00
|
|
|
openssl-libssh:
|
|
|
|
jobs:
|
|
|
|
- libssh
|
|
|
|
|
2022-01-31 19:52:29 +08:00
|
|
|
openssl-no-proxy:
|
|
|
|
jobs:
|
|
|
|
- no-proxy
|
|
|
|
|
|
|
|
openssl-no-verbose:
|
|
|
|
jobs:
|
|
|
|
- no-verbose
|
|
|
|
|
2022-02-13 06:14:16 +08:00
|
|
|
wolfssl-wolfssh:
|
|
|
|
jobs:
|
|
|
|
- wolfssh
|
|
|
|
|
2021-06-11 13:50:28 +08:00
|
|
|
arm-openssl:
|
|
|
|
jobs:
|
|
|
|
- arm
|
2022-01-31 17:03:15 +08:00
|
|
|
|
|
|
|
arm-openssl-c-ares:
|
|
|
|
jobs:
|
|
|
|
- arm-cares
|