-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add a script for building OpenSSL * bundle Win32.pm * fix bash flags * enable retry when downloading OpenSSL * add Win32.pm into pre-installed module list * fix prefix of OpenSSL * fix the package name of Win32 * fix perfix of OpenSSL * fix the prefix of OpenSSL * add .github/build-openssl-win32.sh
- Loading branch information
1 parent
a5b5d0c
commit 2650bbb
Showing
6 changed files
with
61 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
# bundle OpenSSL for better reproducibility. | ||
|
||
set -e | ||
|
||
OPENSSL_VERSION=1_1_1i | ||
ROOT=$(cd "$(dirname "$0")" && pwd) | ||
: "${RUNNER_TEMP:=$ROOT/working}" | ||
: "${RUNNER_TOOL_CACHE:=$RUNNER_TEMP/dist}" | ||
PERL_DIR=$PERL_VERSION | ||
if [[ "x$PERL_MULTI_THREAD" != "x" ]]; then | ||
PERL_DIR="$PERL_DIR-thr" | ||
fi | ||
PREFIX=$(cygpath "$RUNNER_TOOL_CACHE\\perl\\$PERL_DIR\\x64") | ||
|
||
# detect the number of CPU Core | ||
JOBS=$(nproc) | ||
|
||
mkdir -p "$RUNNER_TEMP" | ||
cd "$RUNNER_TEMP" | ||
|
||
echo "::group::download OpenSSL source" | ||
( | ||
set -eux | ||
cd "$RUNNER_TEMP" | ||
curl --retry 3 -sSL "https://github.com/openssl/openssl/archive/OpenSSL_$OPENSSL_VERSION.tar.gz" -o openssl.tar.gz | ||
) | ||
echo "::endgroup::" | ||
|
||
echo "::group::extract OpenSSL source" | ||
( | ||
set -eux | ||
cd "$RUNNER_TEMP" | ||
tar zxvf openssl.tar.gz | ||
) | ||
echo "::endgroup::" | ||
|
||
echo "::group::build OpenSSL" | ||
( | ||
set -eux | ||
cd "$RUNNER_TEMP/openssl-OpenSSL_$OPENSSL_VERSION" | ||
./Configure --prefix="$PREFIX" mingw64 | ||
make "-j$JOBS" | ||
make install_sw install_ssldirs | ||
) | ||
echo "::endgroup::" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters