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
|
|
|
|
|
|
|
|
name: Linux
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- '*/ci'
|
2022-12-28 22:57:36 +08:00
|
|
|
paths-ignore:
|
|
|
|
- '**/*.md'
|
2022-08-14 05:59:51 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2022-12-28 22:57:36 +08:00
|
|
|
paths-ignore:
|
|
|
|
- '**/*.md'
|
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: {}
|
|
|
|
|
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:
|
|
|
|
- name: torture
|
2022-09-02 04:44:43 +08:00
|
|
|
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libnghttp2-dev libssh2-1-dev libc-ares-dev
|
2023-02-09 15:35:29 +08:00
|
|
|
configure: --with-openssl --enable-debug --enable-ares --enable-websockets
|
2022-08-14 05:59:51 +08:00
|
|
|
tflags: -n -t --shallow=25 !FTP
|
|
|
|
- name: torture-ftp
|
2022-09-02 04:44:43 +08:00
|
|
|
install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libnghttp2-dev libssh2-1-dev libc-ares-dev
|
|
|
|
configure: --with-openssl --enable-debug --enable-ares
|
2022-08-14 05:59:51 +08:00
|
|
|
tflags: -n -t --shallow=20 FTP
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run: |
|
|
|
|
sudo apt-get update
|
2022-09-02 04:44:43 +08:00
|
|
|
sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
|
2022-08-14 05:59:51 +08:00
|
|
|
sudo python3 -m pip install impacket
|
|
|
|
name: 'install prereqs and impacket'
|
|
|
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- run: autoreconf -fi
|
|
|
|
name: 'autoreconf'
|
|
|
|
|
2022-09-02 04:44:43 +08:00
|
|
|
- run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
|
2022-08-14 05:59:51 +08:00
|
|
|
name: 'configure'
|
|
|
|
|
|
|
|
- run: make V=1
|
|
|
|
name: 'make'
|
|
|
|
|
2022-09-29 18:26:04 +08:00
|
|
|
- run: make V=1 -C tests
|
|
|
|
name: 'make tests'
|
|
|
|
|
2022-08-14 05:59:51 +08:00
|
|
|
- run: make V=1 test-torture
|
2022-09-29 18:26:04 +08:00
|
|
|
name: 'run tests'
|
2022-08-14 05:59:51 +08:00
|
|
|
env:
|
|
|
|
TFLAGS: "${{ matrix.build.tflags }}"
|