Skip to content

Commit 26ec1ea

Browse files
committed
Move the installation into GH actions
1 parent f12d485 commit 26ec1ea

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ jobs:
6666
shell: bash
6767
run: ./program-test/install-build-deps.sh
6868

69+
# took the workaround from https://github.com/sfackler/rust-openssl/issues/2149
70+
- name: Setup openssl on Windows
71+
if: runner.os == 'Windows'
72+
shell: bash
73+
run: |
74+
echo "PERL=$(which perl)" >> $GITHUB_ENV
75+
echo "OPENSSL_SRC_PERL=$(which perl)" >> $GITHUB_ENV
76+
choco install openssl --version 3.4.1 --install-arguments="'/DIR=C:\OpenSSL'" -y
77+
echo "OPENSSL_LIB_DIR=C:\OpenSSL\lib\VC\x64\MT" >> $GITHUB_ENV
78+
echo "OPENSSL_INCLUDE_DIR=C:\OpenSSL\include" >> $GITHUB_ENV
79+
6980
- name: Build and test program
7081
shell: bash
7182
run: ./program-test/test.sh

program-test/install-build-deps.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
set -e
33
case $(uname -s | cut -c1-7) in
44
"Windows" | "MINGW64")
5-
export PERL="$(which perl)"
6-
export OPENSSL_SRC_PERL="$(which perl)"
7-
choco install openssl --version 3.4.1 --install-arguments="'/DIR=C:\OpenSSL'" -y
8-
export OPENSSL_LIB_DIR='C:\OpenSSL\lib\VC\x64\MT'
9-
export OPENSSL_INCLUDE_DIR='C:\OpenSSL\include'
105
choco install protoc
116
export PROTOC='C:\ProgramData\chocolatey\lib\protoc\tools\bin\protoc.exe'
127
;;

0 commit comments

Comments
 (0)