Skip to content

Commit c2db15d

Browse files
committed
Add windows build
1 parent 8cabc96 commit c2db15d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/win-build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Windows build and tests
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
win-build:
11+
timeout-minutes: 30
12+
runs-on: windows-2022
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: configure
17+
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1
18+
#run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1
19+
- name: build
20+
run: cmake --build build --config Debug
21+
- name: test
22+
run: cd build && ctest --output-on-failure -C Debug

tests/test_ur_driver.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ TEST_F(UrDriverTest, read_non_existing_script_file)
228228

229229
TEST_F(UrDriverTest, read_existing_script_file)
230230
{
231+
#ifdef _WIN32
232+
#define mkstemp _mktemp_s
233+
#endif
231234
g_consume_rtde_packages = true;
232235
char existing_script_file[] = "urscript.XXXXXX";
233236
int fd = mkstemp(existing_script_file);

0 commit comments

Comments
 (0)