Skip to content

Commit b71f9cc

Browse files
committed
fix error on windows platform
1 parent 665c571 commit b71f9cc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/standalone.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ jobs:
2929
run: cmake --build build -j4
3030

3131
- name: run
32-
run: ./build/Greeter
32+
run: |
33+
echo -ne "\n" | ./build/server

.github/workflows/windows.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
- uses: actions/checkout@v1
2121

2222
- name: configure
23-
run: cmake -Htest -Bbuild
23+
run: |
24+
$env:BOOST_ROOT = $env:BOOST_ROOT_1_72_0
25+
cmake -Htest -Bbuild
2426
2527
- name: build
2628
run: cmake --build build --config Debug -j4

test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ include(../cmake/tools.cmake)
1313

1414
# ---- Dependencies ----
1515

16+
find_package(Threads REQUIRED)
17+
1618
include(../cmake/CPM.cmake)
1719

1820
include(../cmake/Asio2.cmake)

0 commit comments

Comments
 (0)