Skip to content

Commit

Permalink
Try to fix Windows CI
Browse files Browse the repository at this point in the history
GitHub says [0] that OpenSSL is already installed, so we *shouldn't need to futz
around with vcpkg, choco, etc to install that and slow things down further. But
it could be installed to C:\OpenSSL, C:\OpenSSL-Win64,
C:\Program Files\OpenSSL-Win64\, etc.
  • Loading branch information
mqudsi committed Feb 28, 2024
1 parent e895778 commit 478c372
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
CARGO_TERM_COLOR: always

jobs:
jobs:
build:
strategy:
matrix:
Expand All @@ -18,6 +18,16 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set OPENSSL_DIR for Windows
if: startsWith(matrix.os, 'windows')
run: |
DIR C:\
DIR "C:\Program Files"
DIR "C:\Program Files\OpenSSL-Win64"
DIR "C:\vcpkg"
DIR "C:\vcpkg\packages"
DIR "C:\vcpkg\packages\openssl_x64-windows"
echo "OPENSSL_DIR=C:\Program Files\OpenSSL-Win64" >> $env:GITHUB_ENV
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down

0 comments on commit 478c372

Please sign in to comment.