forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
link openssl statically for Windows (#3118)
* ci: fix windows pipeline * vendor openssl for windows * add comment for the workaround (cherry picked from commit 49d2298)
- Loading branch information
1 parent
0b64361
commit d4e4f23
Showing
6 changed files
with
49 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
os_name="$1" | ||
|
||
# shellcheck source=.github/scripts/install-openssl.sh | ||
source "$here/install-openssl.sh" "$os_name" | ||
# shellcheck source=.github/scripts/install-proto.sh | ||
source "$here/install-proto.sh" "$os_name" |
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,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
os_name="$1" | ||
|
||
case "$os_name" in | ||
"Windows") | ||
choco install openssl --version 3.3.2 --install-arguments="'/DIR=C:\OpenSSL'" -y | ||
export OPENSSL_LIB_DIR="C:\OpenSSL\lib\VC\x64\MT" | ||
export OPENSSL_INCLUDE_DIR="C:\OpenSSL\include" | ||
;; | ||
"macOS") ;; | ||
"Linux") ;; | ||
*) | ||
echo "Unknown Operating System" | ||
;; | ||
esac |
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
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