2023-01-19 00:54:30 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
|
|
|
name: Linux
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- '*/ci'
|
|
|
|
paths-ignore:
|
|
|
|
- '**/*.md'
|
2023-04-25 07:34:26 +08:00
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
- '.circleci/**'
|
|
|
|
- '.cirrus.yml'
|
|
|
|
- 'appveyor.yml'
|
|
|
|
- 'packages/**'
|
|
|
|
- 'plan9/**'
|
|
|
|
- 'projects/**'
|
|
|
|
- 'winbuild/**'
|
2023-01-19 00:54:30 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- '**/*.md'
|
2023-04-25 07:34:26 +08:00
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
- '.circleci/**'
|
|
|
|
- '.cirrus.yml'
|
|
|
|
- 'appveyor.yml'
|
|
|
|
- 'packages/**'
|
|
|
|
- 'plan9/**'
|
|
|
|
- 'projects/**'
|
|
|
|
- 'winbuild/**'
|
2023-01-19 00:54:30 +08:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
# Hardcoded workflow filename as workflow name above is just Linux again
|
|
|
|
group: awslc-${{ github.event.pull_request.number || github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
autoconf:
|
|
|
|
name: awslc (autoconf)
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
timeout-minutes: 30
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run: |
|
|
|
|
sudo apt-get update --yes
|
|
|
|
sudo apt-get install --yes libtool autoconf automake pkg-config stunnel4
|
|
|
|
# ensure we don't pick up openssl in this build
|
|
|
|
sudo apt remove --yes libssl-dev
|
|
|
|
sudo python3 -m pip install impacket
|
|
|
|
name: 'install prereqs and impacket'
|
|
|
|
|
|
|
|
- run: |
|
2023-04-11 03:19:11 +08:00
|
|
|
curl -LOsSf --retry 6 --retry-connrefused --max-time 999 https://github.com/awslabs/aws-lc/archive/refs/tags/v1.3.0.tar.gz
|
2023-01-19 00:54:30 +08:00
|
|
|
tar xzf v1.3.0.tar.gz
|
|
|
|
mkdir aws-lc-1.3.0-build
|
|
|
|
cd aws-lc-1.3.0-build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=$HOME/awslc ../aws-lc-1.3.0
|
|
|
|
cmake --build . --parallel
|
|
|
|
cmake --install .
|
|
|
|
name: 'install awslc'
|
|
|
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- run: autoreconf -fi
|
|
|
|
name: 'autoreconf'
|
|
|
|
|
2023-04-27 13:10:40 +08:00
|
|
|
- run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
../configure --enable-warnings --enable-werror --with-openssl=$HOME/awslc
|
|
|
|
cd ..
|
|
|
|
name: 'configure out-of-tree'
|
2023-01-19 00:54:30 +08:00
|
|
|
|
2023-04-27 13:10:40 +08:00
|
|
|
- run: make -C build -j 2 V=1
|
2023-01-19 00:54:30 +08:00
|
|
|
name: 'make'
|
|
|
|
|
2023-04-27 13:10:40 +08:00
|
|
|
- run: make -C build -j 2 V=1 examples
|
2023-01-19 00:54:30 +08:00
|
|
|
name: 'make examples'
|
|
|
|
|
2023-04-27 13:10:40 +08:00
|
|
|
- run: make -C build -j 2 V=1 -C tests
|
2023-01-19 00:54:30 +08:00
|
|
|
name: 'make tests'
|
|
|
|
|
2023-04-27 13:10:40 +08:00
|
|
|
- run: make -C build V=1 test-ci
|
2023-01-19 00:54:30 +08:00
|
|
|
name: 'run tests'
|
|
|
|
|
|
|
|
cmake:
|
|
|
|
name: awslc (cmake)
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
timeout-minutes: 15
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install cmake stunnel4
|
|
|
|
# ensure we don't pick up openssl in this build
|
|
|
|
sudo apt remove --yes libssl-dev
|
|
|
|
sudo python3 -m pip install impacket
|
|
|
|
name: 'install prereqs and impacket'
|
|
|
|
|
|
|
|
- run: |
|
2023-04-11 03:19:11 +08:00
|
|
|
curl -LOsSf --retry 6 --retry-connrefused --max-time 999 https://github.com/awslabs/aws-lc/archive/refs/tags/v1.3.0.tar.gz
|
2023-01-19 00:54:30 +08:00
|
|
|
tar xzf v1.3.0.tar.gz
|
|
|
|
mkdir aws-lc-1.3.0-build
|
|
|
|
cd aws-lc-1.3.0-build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=$HOME/awslc ../aws-lc-1.3.0
|
|
|
|
cmake --build . --parallel
|
|
|
|
cmake --install .
|
|
|
|
name: 'install awslc'
|
|
|
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
# CMAKE_COMPILE_WARNING_AS_ERROR is available in cmake 3.24 or later
|
|
|
|
- run: cmake -Bbuild -DOPENSSL_ROOT_DIR=$HOME/awslc -DBUILD_SHARED_LIBS=ON -DCMAKE_COMPILE_WARNING_AS_ERROR=ON .
|
2023-04-27 13:10:40 +08:00
|
|
|
name: 'cmake generate out-of-tree'
|
2023-01-19 00:54:30 +08:00
|
|
|
|
|
|
|
- run: cmake --build build --parallel
|
|
|
|
name: 'cmake build'
|
|
|
|
|
|
|
|
- run: cmake --install build --prefix $HOME/curl --strip
|
|
|
|
name: 'cmake install'
|