2023-01-02 15:51:48 +03:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-05-17 12:16:50 +03:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
2023-06-23 22:51:41 +03:00
|
|
|
name: Linux wolfSSL
|
2021-12-28 17:08:24 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-12-06 13:05:20 +03:00
|
|
|
- master
|
|
|
|
- '*/ci'
|
2022-12-28 17:57:36 +03:00
|
|
|
paths-ignore:
|
2023-12-06 13:05:20 +03:00
|
|
|
- '**/*.md'
|
|
|
|
- '**/CMakeLists.txt'
|
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
- '.circleci/**'
|
|
|
|
- '.cirrus.yml'
|
2023-12-21 06:59:20 +03:00
|
|
|
- 'appveyor.*'
|
2023-12-06 13:05:20 +03:00
|
|
|
- 'CMake/**'
|
|
|
|
- 'packages/**'
|
|
|
|
- 'plan9/**'
|
|
|
|
- 'projects/**'
|
|
|
|
- 'winbuild/**'
|
2021-12-28 17:08:24 +03:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-12-06 13:05:20 +03:00
|
|
|
- master
|
2022-12-28 17:57:36 +03:00
|
|
|
paths-ignore:
|
2023-12-06 13:05:20 +03:00
|
|
|
- '**/*.md'
|
|
|
|
- '**/CMakeLists.txt'
|
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
- '.circleci/**'
|
|
|
|
- '.cirrus.yml'
|
2023-12-21 06:59:20 +03:00
|
|
|
- 'appveyor.*'
|
2023-12-06 13:05:20 +03:00
|
|
|
- 'CMake/**'
|
|
|
|
- 'packages/**'
|
|
|
|
- 'plan9/**'
|
|
|
|
- 'projects/**'
|
|
|
|
- 'winbuild/**'
|
2021-12-28 17:08:24 +03:00
|
|
|
|
2022-09-18 00:45:32 +03:00
|
|
|
concurrency:
|
|
|
|
# Hardcoded workflow filename as workflow name above is just Linux again
|
|
|
|
group: wolfssl-${{ github.event.pull_request.number || github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-11-16 17:55:33 +03:00
|
|
|
permissions: {}
|
|
|
|
|
2023-06-23 22:51:41 +03:00
|
|
|
env:
|
2024-05-28 10:01:49 +03:00
|
|
|
MAKEFLAGS: -j 5
|
2023-06-23 22:51:41 +03:00
|
|
|
|
2021-12-28 17:08:24 +03:00
|
|
|
jobs:
|
|
|
|
autotools:
|
|
|
|
name: ${{ matrix.build.name }}
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
timeout-minutes: 60
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
build:
|
2023-12-06 13:05:20 +03:00
|
|
|
- name: wolfssl (configured with --enable-all)
|
|
|
|
install:
|
|
|
|
configure: LDFLAGS="-Wl,-rpath,$HOME/wssl/lib" --with-wolfssl=$HOME/wssl --enable-debug
|
|
|
|
wolfssl-configure: --enable-all
|
|
|
|
- name: wolfssl (configured with --enable-opensslextra)
|
2024-04-04 09:50:34 +03:00
|
|
|
install: valgrind
|
2023-12-06 13:05:20 +03:00
|
|
|
configure: LDFLAGS="-Wl,-rpath,$HOME/wssl/lib" --with-wolfssl=$HOME/wssl --enable-debug
|
|
|
|
wolfssl-configure: --enable-opensslextra
|
2021-12-28 17:08:24 +03:00
|
|
|
|
|
|
|
steps:
|
2023-12-06 13:05:20 +03:00
|
|
|
- run: |
|
2024-04-25 12:46:41 +03:00
|
|
|
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
2023-12-06 13:05:20 +03:00
|
|
|
sudo apt-get update
|
2024-01-08 18:49:21 +03:00
|
|
|
sudo apt-get install libtool autoconf automake pkg-config stunnel4 libpsl-dev ${{ matrix.build.install }}
|
2023-12-06 13:05:20 +03:00
|
|
|
sudo python3 -m pip install impacket
|
|
|
|
name: 'install prereqs and impacket'
|
2021-12-28 17:08:24 +03:00
|
|
|
|
2024-06-13 18:18:24 +03:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
2024-05-13 18:15:18 +03:00
|
|
|
|
2023-12-06 13:05:20 +03:00
|
|
|
- run: |
|
2024-05-13 18:15:18 +03:00
|
|
|
source .github/scripts/VERSIONS
|
2023-12-06 13:05:20 +03: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
|
|
|
|
./autogen.sh
|
2024-05-27 16:19:35 +03:00
|
|
|
./configure --disable-dependency-tracking --enable-tls13 ${{ matrix.build.wolfssl-configure }} --enable-harden --prefix=$HOME/wssl
|
2023-12-06 13:05:20 +03:00
|
|
|
make install
|
|
|
|
name: 'install wolfssl'
|
2021-12-28 17:08:24 +03:00
|
|
|
|
2023-12-06 13:05:20 +03:00
|
|
|
- run: autoreconf -fi
|
|
|
|
name: 'autoreconf'
|
2022-05-18 01:03:16 +03:00
|
|
|
|
2024-05-27 16:19:35 +03:00
|
|
|
- run: ./configure --disable-dependency-tracking --enable-warnings --enable-werror ${{ matrix.build.configure }}
|
2023-12-06 13:05:20 +03:00
|
|
|
name: 'configure'
|
2022-05-18 01:03:16 +03:00
|
|
|
|
2023-12-06 13:05:20 +03:00
|
|
|
- run: make V=1
|
|
|
|
name: 'make'
|
2022-05-18 01:03:16 +03:00
|
|
|
|
2023-12-06 13:05:20 +03:00
|
|
|
- run: make V=1 examples
|
|
|
|
name: 'make examples'
|
2021-12-28 17:08:24 +03:00
|
|
|
|
2023-12-06 13:05:20 +03:00
|
|
|
- run: make V=1 -C tests
|
|
|
|
name: 'make tests'
|
2022-09-29 13:26:04 +03:00
|
|
|
|
2023-12-06 13:05:20 +03:00
|
|
|
- run: make V=1 test-ci
|
|
|
|
name: 'run tests'
|
|
|
|
env:
|
|
|
|
TFLAGS: "${{ matrix.build.tflags }}"
|