Skip to content

Commit 2f7df2d

Browse files
committedFeb 5, 2025·
Merge PR 376
add CI job for building with openssl 1.1.1
1 parent 1350164 commit 2f7df2d

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed
 

‎.github/workflows/openssl-1.1.1.yml

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Copyright 2025 Stefan Eissing (https://dev-icing.de)
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
16+
name: OpenSSL-1.1.1
17+
18+
'on':
19+
push:
20+
branches:
21+
- master
22+
- '*/ci'
23+
paths-ignore:
24+
- '**/*.md'
25+
pull_request:
26+
branches:
27+
- master
28+
paths-ignore:
29+
- '**/*.md'
30+
31+
concurrency:
32+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
33+
cancel-in-progress: true
34+
35+
permissions: {}
36+
37+
env:
38+
MARGS: "-j5"
39+
CFLAGS: "-g"
40+
41+
jobs:
42+
linux:
43+
name: ${{ matrix.name }}
44+
runs-on: ubuntu-latest
45+
timeout-minutes: 30
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
build:
50+
- name: openssl 1.1.1
51+
install_packages:
52+
install_steps:
53+
54+
steps:
55+
- name: 'install prereqs'
56+
run: |
57+
sudo apt-get update -y
58+
sudo apt-get install -y --no-install-suggests --no-install-recommends \
59+
libtool autoconf automake pkgconf apache2 apache2-dev openssl \
60+
curl nghttp2-client libssl-dev libjansson-dev libcurl4-openssl-dev \
61+
${{ matrix.build.install_packages }}
62+
python3 -m venv $HOME/venv
63+
64+
- uses: actions/checkout@v4
65+
66+
- name: 'install test prereqs'
67+
run: |
68+
[ -x "$HOME/venv/bin/activate" ] && source $HOME/venv/bin/activate
69+
python3 -m pip install -r test/requirements.txt
70+
71+
- name: 'cache openssl'
72+
uses: actions/cache@v4
73+
id: cache-openssl
74+
env:
75+
cache-name: cache-openssl
76+
with:
77+
path: ~/openssl
78+
key: ${{ runner.os }}-build-${{ env.cache-name }}-1.1.1
79+
80+
- name: 'install openssl'
81+
if: steps.cache-openssl.outputs.cache-hit != 'true'
82+
run: |
83+
curl -LO https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1s/openssl-1.1.1s.tar.gz
84+
tar xfz openssl-1.1.1s.tar.gz
85+
cd openssl-1.1.1s
86+
CFLAGS="-fPIC" ./config --prefix=$HOME/openssl --libdir=lib shared
87+
make
88+
make -j1 install_sw
89+
90+
- name: 'configure'
91+
# configure without --enable-werror since openssl 1.1.1 will give warnings
92+
run: |
93+
autoreconf -fi
94+
./configure --enable-werror --with-openssl=$HOME/openssl
95+
96+
- name: 'build'
97+
run: make V=1
98+

0 commit comments

Comments
 (0)
Please sign in to comment.