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