Skip to content

Commit

Permalink
Fix CI compilation on Windows and Mac. (#48)
Browse files Browse the repository at this point in the history
* Revert "only compile linux"

This reverts commit e263eef.

* Bump OSX version and add windows compile option.
  • Loading branch information
eliphatfs authored Jul 12, 2024
1 parent d2a6c13 commit cafa5de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,16 @@ jobs:
matrix:
config:
- { os: "ubuntu-20.04", arch: "auto64" }
# - { os: "windows-2019", arch: "auto64" }
# - { os: "macos-11", arch: "auto64" }
# - { os: "macos-11", arch: "universal2" }
- { os: "windows-2019", arch: "auto64" }
- { os: "macos-12", arch: "auto64" }
- { os: "macos-12", arch: "universal2" }
steps:
- uses: actions/checkout@v2
with:
submodules: "true"
- name: Install Dependencies
run: |
python3 -m pip install wheel
- name: Set CXXFLAGS for Windows
if: matrix.config.os == 'windows-2019'
run: |
set CXXFLAGS=/bigobj
- name: Build Wheels
uses: pypa/[email protected]
env:
Expand All @@ -44,8 +40,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
#, windows-2019, macos-11]
os: [ubuntu-20.04, windows-2019, macos-12]
python-version: ['3.6', '3.11']

steps:
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ else()
endif()

if (MSVC)
add_compile_options("/bigobj")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W0 -fpermissive -D_USE_MATH_DEFINES")
set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
else()
Expand Down

0 comments on commit cafa5de

Please sign in to comment.