File tree 2 files changed +17
-4
lines changed
2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ shlib_sed() {
9
9
sed -i " s/^SHLIB_MINOR=.*/SHLIB_MINOR=0.0/" Makefile
10
10
sed -i " s/^SHLIB_VERSION_NUMBER=.*/SHLIB_VERSION_NUMBER=100.0.0/" Makefile
11
11
}
12
+ shlib_sed_3 () {
13
+ # OpenSSL 3 changes how it does the shlib versioning
14
+ sed -i " s/^SHLIB_VERSION=.*/SHLIB_VERSION=100/" VERSION.dat
15
+ }
12
16
13
17
if [[ " ${TYPE} " == " openssl" ]]; then
14
18
if [[ " ${VERSION} " =~ ^[0-9a-f]{40}$ ]]; then
@@ -20,9 +24,18 @@ if [[ "${TYPE}" == "openssl" ]]; then
20
24
tar zxf " openssl-${VERSION} .tar.gz"
21
25
pushd " openssl-${VERSION} "
22
26
fi
27
+ # For OpenSSL 3 we need to call this before config
28
+ if [[ " ${VERSION} " =~ ^3. ]] || [[ " ${VERSION} " =~ ^[0-9a-f]{40}$ ]]; then
29
+ shlib_sed_3
30
+ fi
31
+
23
32
# CONFIG_FLAGS is a global coming from a previous step
24
33
./config ${CONFIG_FLAGS} -fPIC --prefix=" ${OSSL_PATH} "
25
- shlib_sed
34
+
35
+ # For OpenSSL 1 we need to call this after config
36
+ if [[ " ${VERSION} " =~ ^1. ]]; then
37
+ shlib_sed
38
+ fi
26
39
make depend
27
40
make -j" $( nproc) "
28
41
# avoid installing the docs (for performance)
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ concurrency:
18
18
19
19
jobs :
20
20
linux :
21
- runs-on : ubuntu-20.04
21
+ runs-on : ubuntu-latest
22
22
strategy :
23
23
fail-fast : false
24
24
matrix :
67
67
~/.cargo/registry/src/
68
68
~/.cargo/git/db/
69
69
src/rust/target/
70
- key : ${{ runner.os }}-${{ matrix.PYTHON.VERSION }}-${{ steps.setup-python.outputs.python-version }}-cargo-3 -${{ hashFiles('**/Cargo.lock') }}
70
+ key : ${{ runner.os }}-${{ matrix.PYTHON.VERSION }}-${{ steps.setup-python.outputs.python-version }}-cargo-5 -${{ hashFiles('**/Cargo.lock') }}
71
71
72
72
73
73
timeout-minutes : 3
96
96
path : ${{ github.workspace }}/osslcache
97
97
# When altering the openssl build process you may need to increment the value on the end of this cache key
98
98
# so that you can prevent it from fetching the cache and skipping the build step.
99
- key : ${{ matrix.PYTHON.OPENSSL.TYPE }}-${{ matrix.PYTHON.OPENSSL.VERSION }}-${{ env.CONFIG_HASH }}-2
99
+ key : ${{ matrix.PYTHON.OPENSSL.TYPE }}-${{ matrix.PYTHON.OPENSSL.VERSION }}-${{ env.CONFIG_HASH }}-4
100
100
if : matrix.PYTHON.OPENSSL
101
101
- name : Build custom OpenSSL/LibreSSL
102
102
run : .github/workflows/build_openssl.sh
You can’t perform that action at this time.
0 commit comments