diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40c13a53..10d5ec33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: push: branches: - main + - kz-release paths: - '**.cpp' - '**.hpp' @@ -42,7 +43,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-13, macos-14] + os: [windows-latest] steps: - uses: actions/checkout@v4 @@ -81,6 +82,10 @@ jobs: ## NOTE: --import-mode=importlib prevents pytest to import piquasso from ## directory # CIBW_TEST_COMMAND: "pytest -v --import-mode=importlib {project}/tests" + env: + CIBW_BUILD: "cp38-win*" + CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel" + CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}" - uses: actions/upload-artifact@v4 with: diff --git a/piquasso/_math/CMakeLists.txt b/piquasso/_math/CMakeLists.txt index 40dd8b34..2bbee79e 100644 --- a/piquasso/_math/CMakeLists.txt +++ b/piquasso/_math/CMakeLists.txt @@ -2,4 +2,8 @@ pybind11_add_module(torontonian SHARED ${CMAKE_CURRENT_SOURCE_DIR}/torontonian.c target_link_libraries(torontonian PUBLIC torontonianboost looptorontonianboost) -install(TARGETS torontonian LIBRARY DESTINATION piquasso/_math) +install( + TARGETS torontonian + RUNTIME DESTINATION piquasso/_math + LIBRARY DESTINATION piquasso/_math +)