use vendored on windows, press x to doubt

This commit is contained in:
Rob Ede 2021-02-12 13:34:57 +00:00
parent ce405e7098
commit 48453d1546
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
2 changed files with 16 additions and 10 deletions

View File

@ -29,16 +29,16 @@ jobs:
runs-on: ${{ matrix.target.os }}
steps:
- name: Install Native Dependencies (Windows)
if: matrix.target.os == 'windows-latest'
run: |
curl -fsS -o vcpkg.7z https://rocket.rs/static/vcpkg-2019-07-05.7z
7z x vcpkg.7z -y -bb0
xcopy .\vcpkg $env:VCPKG_INSTALLATION_ROOT /s /e /h /y /q
vcpkg integrate install
echo "VCPKGRS_DYNAMIC=1" >> "$env:GITHUB_ENV"
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" >> "$env:GITHUB_ENV"
echo "$env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib" >> "$env:GITHUB_PATH"
# - name: Install Native Dependencies (Windows)
# if: matrix.target.os == 'windows-latest'
# run: |
# curl -fsS -o vcpkg.7z https://rocket.rs/static/vcpkg-2019-07-05.7z
# 7z x vcpkg.7z -y -bb0
# xcopy .\vcpkg $env:VCPKG_INSTALLATION_ROOT /s /e /h /y /q
# vcpkg integrate install
# echo "VCPKGRS_DYNAMIC=1" >> "$env:GITHUB_ENV"
# echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" >> "$env:GITHUB_ENV"
# echo "$env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib" >> "$env:GITHUB_PATH"
- uses: actions/checkout@v2

View File

@ -60,6 +60,12 @@ serde_urlencoded = "0.7"
tls-openssl = { version = "0.10.9", package = "openssl", optional = true }
tls-rustls = { version = "0.19.0", package = "rustls", optional = true, features = ["dangerous_configuration"] }
[target.'cfg(windows)'.dependencies.tls-openssl]
version = "0.10.9"
package = "openssl"
features = ["vendored"]
optional = true
[dev-dependencies]
actix-web = { version = "4.0.0-beta.3", features = ["openssl"] }
actix-http = { version = "3.0.0-beta.3", features = ["openssl"] }