Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add windows build
Browse files Browse the repository at this point in the history
urfeex committed Jan 17, 2025
1 parent 8cabc96 commit 32a29bd
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/win-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Windows build and tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- win-build

jobs:
win-build:
timeout-minutes: 30
runs-on: windows-2022

steps:
- uses: actions/checkout@v4
- name: configure
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1
#run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1
- name: build
run: cmake --build build --config Debug
- name: test
run: cd build && ctest --output-on-failure -C Debug
3 changes: 3 additions & 0 deletions tests/test_ur_driver.cpp
Original file line number Diff line number Diff line change
@@ -228,6 +228,9 @@ TEST_F(UrDriverTest, read_non_existing_script_file)

TEST_F(UrDriverTest, read_existing_script_file)
{
#ifdef _WIN32
#define mkstemp _mktemp_s
#endif
g_consume_rtde_packages = true;
char existing_script_file[] = "urscript.XXXXXX";
int fd = mkstemp(existing_script_file);

0 comments on commit 32a29bd

Please sign in to comment.