Skip to content

Commit 7059ab8

Browse files
authored
Update test.yaml
1 parent 9afe750 commit 7059ab8

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/test.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)