-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
598e9e6
commit fd2780c
Showing
3 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -228,18 +228,54 @@ jobs: | |
# TODO: Switch back to macos-latest once https://github.com/actions/python-versions/pull/114 is fixed | ||
os: | ||
- 'ubuntu-latest' | ||
# TODO: Fix failing CMake build on windows: | ||
# `cl : command line error D8016: '/O2' and '/RTC1' command-line options are incompatible [D:\a\voyager\voyager\cpp\test\test.vcxproj]` | ||
- windows-latest | ||
- macos-12 | ||
name: Test C++ on ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Install Linux dependencies | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get update && sudo apt-get install -y pkg-config | ||
- name: Build voyager locally | ||
run: make test | ||
- name: Set up CMake on Windows | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' | ||
choco install ninja | ||
- name: Set up CMake on macOS | ||
if: matrix.os == 'macos-12' | ||
run: brew install cmake | ||
|
||
- name: Set up CMake on Ubuntu | ||
if: matrix.os == 'ubuntu-latest' | ||
run: sudo apt-get install -y cmake | ||
|
||
- name: Configure CMake | ||
run: cmake -S . -B build | ||
|
||
- name: Build with CMake | ||
run: cmake --build build | ||
|
||
- name: Run Tests (if any) | ||
run: ctest --test-dir build | ||
# - name: Run CMake (Linux & MacOS) | ||
# if: runner.os != 'Windows' | ||
# uses: threeal/[email protected] | ||
# with: | ||
# source-dir: cpp | ||
# build-dir: cpp | ||
# - name: Run CMake (Windows) | ||
# if: runner.os == 'Windows' | ||
# uses: threeal/[email protected] | ||
# with: | ||
# source-dir: cpp | ||
# build-dir: cpp | ||
# cxx-flags: /Od # Disable optimization (since it breaks CMake on Windows) | ||
# - name: Build C++ | ||
# run: make test | ||
# - name: Run tests | ||
# run: ./test/test | ||
|
||
build-python-wheels: | ||
needs: [run-python-tests, run-python-tests-with-address-sanitizer] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters