2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-08-14 05:59:51 +08:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
2023-06-24 03:51:41 +08:00
|
|
|
name: Linux torture
|
2022-08-14 05:59:51 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-12-06 18:05:20 +08:00
|
|
|
- master
|
|
|
|
- '*/ci'
|
2022-12-28 22:57:36 +08:00
|
|
|
paths-ignore:
|
2023-12-06 18:05:20 +08:00
|
|
|
- '**/*.md'
|
|
|
|
- '**/CMakeLists.txt'
|
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
- '.circleci/**'
|
|
|
|
- '.cirrus.yml'
|
2023-12-21 11:59:20 +08:00
|
|
|
- 'appveyor.*'
|
2023-12-06 18:05:20 +08:00
|
|
|
- 'CMake/**'
|
|
|
|
- 'packages/**'
|
|
|
|
- 'plan9/**'
|
|
|
|
- 'projects/**'
|
|
|
|
- 'winbuild/**'
|
2022-08-14 05:59:51 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-12-06 18:05:20 +08:00
|
|
|
- master
|
2022-12-28 22:57:36 +08:00
|
|
|
paths-ignore:
|
2023-12-06 18:05:20 +08:00
|
|
|
- '**/*.md'
|
|
|
|
- '**/CMakeLists.txt'
|
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
- '.circleci/**'
|
|
|
|
- '.cirrus.yml'
|
2023-12-21 11:59:20 +08:00
|
|
|
- 'appveyor.*'
|
2023-12-06 18:05:20 +08:00
|
|
|
- 'CMake/**'
|
|
|
|
- 'packages/**'
|
|
|
|
- 'plan9/**'
|
|
|
|
- 'projects/**'
|
|
|
|
- 'winbuild/**'
|
2022-08-14 05:59:51 +08:00
|
|
|
|
2022-09-18 05:45:32 +08:00
|
|
|
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
|
|
|
|
|
2022-11-16 22:55:33 +08:00
|
|
|
permissions: {}
|
|
|
|
|
2023-06-24 03:51:41 +08:00
|
|
|
env:
|
|
|
|
MAKEFLAGS: -j 3
|
|
|
|
|
2022-08-14 05:59:51 +08:00
|
|
|
jobs:
|
|
|
|
autotools:
|
|
|
|
name: ${{ matrix.build.name }}
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
timeout-minutes: 90
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
build:
|
2023-12-06 18:05:20 +08:00
|
|
|
- name: torture
|
|
|
|
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libnghttp2-dev libssh2-1-dev libc-ares-dev
|
|
|
|
configure: --with-openssl --enable-debug --enable-ares --enable-websockets
|
|
|
|
tflags: -n -t --shallow=25 !FTP
|
|
|
|
- name: torture-ftp
|
|
|
|
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libnghttp2-dev libssh2-1-dev libc-ares-dev
|
|
|
|
configure: --with-openssl --enable-debug --enable-ares
|
|
|
|
tflags: -n -t --shallow=20 FTP
|
2022-08-14 05:59:51 +08:00
|
|
|
|
|
|
|
steps:
|
2023-12-06 18:05:20 +08:00
|
|
|
- run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
|
|
|
|
sudo python3 -m pip install impacket
|
|
|
|
name: 'install prereqs and impacket'
|
2022-08-14 05:59:51 +08:00
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-14 05:59:51 +08:00
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
- run: autoreconf -fi
|
|
|
|
name: 'autoreconf'
|
2022-08-14 05:59:51 +08:00
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
|
|
|
|
name: 'configure'
|
2022-08-14 05:59:51 +08:00
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
- run: make V=1
|
|
|
|
name: 'make'
|
2022-08-14 05:59:51 +08:00
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
- run: make V=1 -C tests
|
|
|
|
name: 'make tests'
|
2022-09-29 18:26:04 +08:00
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
- run: make V=1 test-torture
|
|
|
|
name: 'run tests'
|
|
|
|
env:
|
|
|
|
TFLAGS: "${{ matrix.build.tflags }}"
|