Skip to content

Commit 6a1747d

Browse files
committed
Add OpenSSL setup to cross-platform workflow
* Add a step to install OpenSSL using `choco install openssl` for Windows runners * Set the `OPENSSL_DIR` environment variable to `C:\Program Files\OpenSSL-Win64` * Add the `OPENSSL_DIR` environment variable to the unit test step
1 parent 79a6fdd commit 6a1747d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/cross-platform.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ jobs:
6666
if: runner.os == 'Windows'
6767
run: |
6868
choco install openssl
69-
echo "##[set-env name=OPENSSL_DIR]=$(choco info openssl | Select-String -Pattern '^Location' | ForEach-Object { $_.ToString().Split(':')[1].Trim() })"
69+
echo "OPENSSL_DIR=C:\\Program Files\\OpenSSL-Win64" >> $GITHUB_ENV
7070
7171
- name: Run unit tests
7272
run: |
7373
# Allow unit tests to continue despite the webpki trait bound issue
7474
cargo test --lib --bins || echo "Unit tests completed with known webpki::Error trait bound issues"
7575
working-directory: .
76+
env:
77+
OPENSSL_DIR: ${{ env.OPENSSL_DIR }}
7678

7779
- name: Run e2e tests
7880
run: |

0 commit comments

Comments
 (0)