Skip to content

Commit cf053f8

Browse files
authored
Add Windows support (#1)
1 parent 6c6e139 commit cf053f8

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
strategy:
4242
fail-fast: false
4343
matrix:
44-
os: [ubuntu-latest, macos-13, macos-latest]
44+
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
4545

4646
steps:
4747
- uses: actions/checkout@v4

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
# This workflow contains a single job called "build"
2222
build:
2323
# The type of runner that the job will run on
24-
runs-on: ubuntu-latest
24+
runs-on: ${{ matrix.os }}
2525

2626
strategy:
2727
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
2828
fail-fast: false
2929

3030
matrix:
31-
os: [ubuntu-latest]
31+
os: [ubuntu-latest, macos-13, windows-latest]
3232

3333
# Steps represent a sequence of tasks that will be executed as part of the job
3434
steps:

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
1111
add_compile_definitions(IS_LINUX)
1212
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
1313
add_compile_definitions(IS_MACOS)
14+
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
15+
add_compile_definitions(IS_WINDOWS)
1416
endif()
1517

1618
find_package(pybind11 REQUIRED)
@@ -21,7 +23,7 @@ include(FetchContent)
2123
FetchContent_Declare(
2224
qoco
2325
GIT_REPOSITORY https://github.com/qoco-org/qoco.git
24-
GIT_TAG d2bbfc5d2d921242e4e94e4a2254d7adec3632b4
26+
GIT_TAG 251303fbb62e4f225170051c2a5f18fcc14c808f
2527
)
2628

2729
list(POP_BACK CMAKE_MESSAGE_INDENT)

0 commit comments

Comments
 (0)