mirror of https://github.com/fafhrd91/actix-web
fix windows ci?
This commit is contained in:
parent
7c6bee6f52
commit
d4b3982cfc
|
@ -23,23 +23,7 @@ jobs:
|
||||||
name: ${{ matrix.target.name }} / ${{ matrix.version }}
|
name: ${{ matrix.target.name }} / ${{ matrix.version }}
|
||||||
runs-on: ${{ matrix.target.os }}
|
runs-on: ${{ matrix.target.os }}
|
||||||
|
|
||||||
# env:
|
|
||||||
# VCPKG_ROOT: 'C:\vcpkg'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: Cache vcpkg installed
|
|
||||||
# uses: actions/cache@v1.0.3
|
|
||||||
# if: matrix.target.os == 'windows-latest'
|
|
||||||
# with:
|
|
||||||
# path: $VCPKG_ROOT/installed
|
|
||||||
# key: ${{ runner.os }}-vcpkg-cache
|
|
||||||
# - name: Cache vcpkg downloads
|
|
||||||
# uses: actions/cache@v1.0.3
|
|
||||||
# if: matrix.target.os == 'windows-latest'
|
|
||||||
# with:
|
|
||||||
# path: $VCPKG_ROOT/downloads
|
|
||||||
# key: ${{ runner.os }}-vcpkg-cache
|
|
||||||
|
|
||||||
- name: Install Native Dependencies (Windows)
|
- name: Install Native Dependencies (Windows)
|
||||||
if: matrix.target.os == 'windows-latest'
|
if: matrix.target.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
|
@ -47,6 +31,10 @@ jobs:
|
||||||
7z x vcpkg.7z -y -bb0
|
7z x vcpkg.7z -y -bb0
|
||||||
xcopy .\vcpkg $env:VCPKG_INSTALLATION_ROOT /s /e /h /y /q
|
xcopy .\vcpkg $env:VCPKG_INSTALLATION_ROOT /s /e /h /y /q
|
||||||
vcpkg integrate install
|
vcpkg integrate install
|
||||||
|
Copy-Item C:\vcpkg\installed\x64-windows\bin\libcrypto-1_1-x64.dll C:\vcpkg\installed\x64-windows\bin\libcrypto.dll
|
||||||
|
Copy-Item C:\vcpkg\installed\x64-windows\bin\libssl-1_1-x64.dll C:\vcpkg\installed\x64-windows\bin\libssl.dll
|
||||||
|
Get-ChildItem C:\vcpkg\installed\x64-windows\bin
|
||||||
|
Get-ChildItem C:\vcpkg\installed\x64-windows\lib
|
||||||
echo "VCPKGRS_DYNAMIC=1" >> "$env:GITHUB_ENV"
|
echo "VCPKGRS_DYNAMIC=1" >> "$env:GITHUB_ENV"
|
||||||
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" >> "$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"
|
echo "$env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib" >> "$env:GITHUB_PATH"
|
||||||
|
|
Loading…
Reference in New Issue