File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -27,26 +27,29 @@ jobs:
2727 windows :
2828 runs-on : windows-latest
2929 steps :
30- - name : prepare git for checkout on windows
30+ - name : Prepare Git for Checkout on Windows
3131 run : |
3232 git config --global core.autocrlf false
3333 git config --global core.eol lf
34- - name : checkout
34+ - name : Checkout
3535 uses : actions/checkout@v4
36+ - name : Export GitHub Actions cache environment variables
37+ uses : actions/github-script@v7
38+ with :
39+ script : |
40+ core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
41+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
3642 - name : setup msbuild on windows
3743 uses : microsoft/setup-msbuild@v2
38- - name : build and run tests
39- run : |
40- cd test
41- msbuild.exe test.sln /verbosity:minimal /t:Build "/p:Configuration=Release;Platform=x64"
42- x64\Release\test.exe
4344 - name : Install libraries
4445 run : |
4546 vcpkg install gtest curl zlib brotli
46- choco openssl
47+ choco install openssl
4748 - name : Configure CMake for Release
4849 run : cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake -DHTTPLIB_TEST=ON -DHTTPLIB_REQUIRE_OPENSSL -DHTTPLIB_REQUIRE_ZLIB=ON -DHTTPLIB_REQUIRE_BROTLI=ON
4950 - name : Build with CMake
5051 run : cmake --build build --config Release
5152 - name : Run tests with CTest
5253 run : ctest --output-on-failure --test-dir build -C Release
54+ env :
55+ VCPKG_BINARY_SOURCES : " clear;x-gha,readwrite"
You can’t perform that action at this time.
0 commit comments