Skip to content

Commit addae69

Browse files
committed
Update env variables with where.exe instead
1 parent 4d211e4 commit addae69

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ jobs:
6262
with:
6363
toolchain: 1.84.1
6464

65+
# took the workaround from https://github.com/sfackler/rust-openssl/issues/2149
66+
- name: Set Perl environment variables
67+
if: runner.os == 'Windows'
68+
run: |
69+
echo "PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
70+
echo "OPENSSL_SRC_PERL=$((where.exe perl)[0])" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
71+
6572
- name: Install build deps
6673
shell: bash
6774
run: ./program-test/install-build-deps.sh

program-test/install-build-deps.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +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)"
75
choco install openssl --version 3.4.1 --install-arguments="'/DIR=C:\OpenSSL'" -y
86
export OPENSSL_LIB_DIR='C:\OpenSSL\lib\VC\x64\MT'
97
export OPENSSL_INCLUDE_DIR='C:\OpenSSL\include'

0 commit comments

Comments
 (0)