Also: - GHA/windows: merge full and brief dump into a single job step. - fix shellcheck warning 'useless cat'. Closes #15266
93 lines
2.6 KiB
YAML
93 lines
2.6 KiB
YAML
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
#
|
|
# SPDX-License-Identifier: curl
|
|
|
|
name: Linux torture
|
|
|
|
'on':
|
|
push:
|
|
branches:
|
|
- master
|
|
- '*/ci'
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
- '**/CMakeLists.txt'
|
|
- '.circleci/**'
|
|
- 'appveyor.*'
|
|
- 'CMake/**'
|
|
- 'packages/**'
|
|
- 'plan9/**'
|
|
- 'projects/**'
|
|
- 'winbuild/**'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
- '**/CMakeLists.txt'
|
|
- '.circleci/**'
|
|
- 'appveyor.*'
|
|
- 'CMake/**'
|
|
- 'packages/**'
|
|
- 'plan9/**'
|
|
- 'projects/**'
|
|
- 'winbuild/**'
|
|
|
|
concurrency:
|
|
# Hardcoded workflow filename as workflow name above is just Linux again
|
|
group: torture-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
cmake:
|
|
name: '${{ matrix.build.name }}'
|
|
runs-on: 'ubuntu-24.04'
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
build:
|
|
- name: 'OpenSSL torture !FTP'
|
|
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libnghttp2-dev libssh2-1-dev libc-ares-dev
|
|
generate: -DCURL_USE_OPENSSL=ON -DENABLE_DEBUG=ON -DENABLE_ARES=ON
|
|
tflags: -t --shallow=25 !FTP
|
|
- name: 'OpenSSL torture FTP'
|
|
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libnghttp2-dev libssh2-1-dev libc-ares-dev
|
|
generate: -DCURL_USE_OPENSSL=ON -DENABLE_DEBUG=ON -DENABLE_ARES=ON
|
|
tflags: -t --shallow=20 FTP
|
|
|
|
steps:
|
|
- run: |
|
|
sudo apt-get install cmake ninja-build pkgconf stunnel4 ${{ matrix.build.install }}
|
|
python3 -m pip install --break-system-packages impacket
|
|
name: 'install prereqs'
|
|
|
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4
|
|
|
|
- run: |
|
|
cmake -G Ninja -DCMAKE_UNITY_BUILD=ON -DCURL_TEST_BUNDLES=ON -DCURL_WERROR=ON \
|
|
-DCURL_BROTLI=ON -DCURL_ZSTD=ON \
|
|
${{ matrix.build.generate }}
|
|
name: 'cmake configure'
|
|
|
|
- name: 'cmake curl_config.h'
|
|
run: |
|
|
echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
|
|
grep -F '#define' lib/curl_config.h | sort || true
|
|
|
|
- run: cmake --build . --verbose
|
|
name: 'cmake build'
|
|
|
|
- run: ./src/curl -V
|
|
name: 'check curl -V output'
|
|
|
|
- run: cmake --build . --verbose --target testdeps
|
|
name: 'build tests'
|
|
|
|
- run: cmake --build . --verbose --target test-torture
|
|
name: 'run tests'
|
|
env:
|
|
TFLAGS: '-j10 ${{ matrix.build.tflags }}'
|