Skip to content

Commit

Permalink
CI: Windows build with vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhmm committed Sep 24, 2024
1 parent 83feba5 commit be8230d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -46,6 +46,21 @@ jobs:
ninja --version
clang --version
- name: Install dependencies (Windows)
if: runner.os == 'Windows'
uses: microsoft/[email protected]

- name: Setup MSVC
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- name: Install CMake and Ninja (Windows)
if: runner.os == 'Windows'
run: |
choco install cmake ninja
cmake --version
ninja --version
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
Expand Down
9 changes: 8 additions & 1 deletion omnn/rt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ if(Boost_FOUND)
endif()
endif()

if (OPENMIND_USE_VCPKG)
list(APPEND DEPENDENCIES Boost::multiprecision)
endif()

if(OPENMIND_USE_OPENCL)
set(DEPENDENCIES ${DEPENDENCIES} OpenCL)
list(APPEND DEPENDENCIES OpenCL)
if (OPENMIND_USE_VCPKG)
list(APPEND DEPENDENCIES Boost::compute)
endif()
endif()

lib(${DEPENDENCIES})

0 comments on commit be8230d

Please sign in to comment.