-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
264 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
source `dirname $0`/config.sh | ||
|
||
OPENSSL_BUILD_PATH=$BUILD_PATH/openssl | ||
|
||
mkdir -p $OPENSSL_BUILD_PATH | ||
cd $OPENSSL_BUILD_PATH | ||
|
||
if [ $RUN_CONFIG = 1 ] || [ ! -f "$OPENSSL_BUILD_PATH/Makefile" ] ; then | ||
echo "::group::Configure OpenSSL" | ||
rm -rf $OPENSSL_BUILD_PATH/* | ||
$SOURCE_PATH/$OPENSSL_VERSION/Configure \ | ||
--prefix=$OPENSSL_PATH \ | ||
--cross-compile-prefix=$TOOLCHAIN_PATH/bin/$TARGET- \ | ||
mingw-arm64 | ||
echo "::endgroup::" | ||
fi | ||
|
||
echo "::group::Build OpenSSL" | ||
make $BUILD_MAKE_OPTIONS | ||
echo "::endgroup::" | ||
|
||
if [ $RUN_INSTALL = 1 ] ; then | ||
echo "::group::Install OpenSSL" | ||
make install | ||
echo "::endgroup::" | ||
fi | ||
|
||
echo 'Success!' |
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,16 @@ | ||
Set-PSDebug -Trace 2 # echo on | ||
|
||
if ( -not $env:OPENBLAS_VERSION ) { $env:OPENBLAS_VERSION = "openblas-develop" } | ||
if ( -not $env:OPENSSL_VERSION ) { $env:OPENSSL_VERSION = "openssl-master" } | ||
|
||
if ( -not $env:TARGET ) { $env:TARGET = "aarch64-w64-mingw32" } | ||
if ( -not $env:CRT ) { $env:CRT = "msvcrt" } | ||
if ( -not $env:TOOLCHAIN_NAME ) { $env:TOOLCHAIN_NAME = "$TARGET-$CRT" } | ||
|
||
if ( -not $env:SOURCE_PATH ) { $env:SOURCE_PATH= "$PWD\code" } | ||
if ( -not $env:BUILD_PATH ) { $env:BUILD_PATH = "$PWD\build-$env:TOOLCHAIN_NAME" } | ||
if ( -not $env:ARTIFACT_PATH ) { $env:ARTIFACT_PATH = "$PWD\artifact" } | ||
if ( -not $env:PERL_PATH ) { $env:PERL_PATH = "C:\Strawberry\perl\bin" } | ||
|
||
if ( -not $env:OPENBLAS_TESTS_PATH ) { $env:OPENBLAS_TESTS_PATH = "$PWD\openblas-tests" } | ||
if ( -not $env:OPENSSL_TESTS_PATH ) { $env:OPENSSL_TESTS_PATH = "$PWD\openssl-tests" } |
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,19 @@ | ||
. $PSScriptRoot\config.ps1 | ||
|
||
Write-Output '::group::Test OpenSSL' | ||
$excluded_tests = @( | ||
'-test_bio_comp' # binary is missing (needs compression support) | ||
'-test_ec' # missing fipsmodule.cnf | ||
'-test_ecparam' # missing fipsmodule.cnf | ||
'-test_dhparam' # missing fipsmodule.cnf | ||
'-test_tls13certcomp' # extensions count mismatch | ||
'-test_ssl_new' # something about handshake failure | ||
'-test_verify' # bad plan | ||
) | ||
|
||
$env:SRCTOP = "$env:SOURCE_PATH\$env:OPENSSL_VERSION" | ||
$env:BLDTOP = "$env:OPENSSL_TESTS_PATH" | ||
$env:LC_ALL = "C" | ||
|
||
& $env:PERL_PATH\perl.exe $env:SRCTOP\test\run_tests.pl $excluded_tests | ||
Write-Output "::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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
source `dirname $0`/config.sh | ||
|
||
echo "::group::Install OpenSSL Dependencies" | ||
sudo apt update | ||
sudo apt install -y libtext-template-perl | ||
echo "::endgroup::" | ||
|
||
echo 'Success!' |
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,13 @@ | ||
#!/bin/bash | ||
|
||
source `dirname $0`/config.sh | ||
|
||
OPENSSL_BUILD_PATH=$BUILD_PATH/openssl | ||
|
||
echo "::group::Pack OpenSSL tests" | ||
mkdir -p $ARTIFACT_PATH | ||
cd $OPENSSL_BUILD_PATH | ||
zip -r $ARTIFACT_PATH/$TOOLCHAIN_NAME-openssl-tests.zip * | ||
echo "::endgroup::" | ||
|
||
echo 'Success!' |
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,11 @@ | ||
#!/bin/bash | ||
|
||
source `dirname $0`/config.sh | ||
|
||
echo "::group::Pack OpenSSL" | ||
mkdir -p $ARTIFACT_PATH | ||
cd $OPENSSL_PATH | ||
zip -r $ARTIFACT_PATH/$TOOLCHAIN_NAME-openssl.zip * | ||
echo "::endgroup::" | ||
|
||
echo 'Success!' |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
. $PSScriptRoot\config.ps1 | ||
|
||
Remove-Item $env:OPENBLAS_TESTS_PATH -Recurse -Force -ErrorAction Ignore | ||
Expand-Archive -LiteralPath $env:TOOLCHAIN_NAME-openblas-tests.zip -DestinationPath $env:OPENBLAS_TESTS_PATH | ||
Expand-Archive -LiteralPath $env:ARTIFACT_PATH\$env:TOOLCHAIN_NAME-openblas-tests.zip -DestinationPath $env:OPENBLAS_TESTS_PATH |
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,4 @@ | ||
. $PSScriptRoot\config.ps1 | ||
|
||
Remove-Item $env:OPENSSL_TESTS_PATH -Recurse -Force -ErrorAction Ignore | ||
Expand-Archive -LiteralPath $env:ARTIFACT_PATH\$env:TOOLCHAIN_NAME-openssl-tests.zip -DestinationPath $env:OPENSSL_TESTS_PATH |
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
Oops, something went wrong.