From 478c372b8fe310a1779660d37d3f43c9820cea7b Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 28 Feb 2024 10:30:00 -0600 Subject: [PATCH] Try to fix Windows CI 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. --- .github/workflows/rust.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f48e895..6af2944 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,7 +9,7 @@ on: env: CARGO_TERM_COLOR: always -jobs: +jobs: build: strategy: matrix: @@ -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