Skip to content

Commit b39a916

Browse files
committed
deploy: adding back windows and mac
1 parent d4967b7 commit b39a916

1 file changed

Lines changed: 33 additions & 31 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -92,37 +92,39 @@ jobs:
9292
CIBW_DEBUG_TRACEBACK: TRUE
9393
CIBW_BEFORE_ALL_LINUX: |
9494
dnf install -y ninja-build
95-
9695
# install conan and C++ dependencies for the project
9796
pip install conan
98-
conan profile --detect
99-
97+
conan profile detect --force
10098
# install symengine
101-
conan profile detect --force
10299
conan install . --output-folder=build --build=missing -pr ./conan_profile
103-
# CIBW_BEFORE_ALL_MACOS: |
104-
# brew install gmp
105-
# # install symengine
106-
# PREFIX="${SYMEMENGINE_PREFIX:-$HOME/.local}"
107-
# ./tools/install-deps.sh "$PREFIX"
108-
# CIBW_BEFORE_ALL_WINDOWS: |
109-
# pip install delvewheel
100+
CIBW_BEFORE_ALL_MACOS: |
101+
# install conan and C++ dependencies for the project
102+
pip install conan
103+
conan profile detect --force
104+
# install symengine
105+
conan install . --output-folder=build --build=missing -pr ./conan_profile
106+
CIBW_BEFORE_ALL_WINDOWS: |
107+
pip install delvewheel conan
108+
conan profile detect --force
109+
# install symengine
110+
conan install . --output-folder=build --build=missing -pr ./conan_profile
110111
# do not activate architecture-dependent compiler flags
111112
# 4 jobs in parallel, but do not start new ones if load average exceeds 5
112113
CIBW_ENVIRONMENT_LINUX: >
113114
CMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake
114115
CIBW="true"
115116
SKBUILD_BUILD_TOOL_ARGS="-j4;-l5"
116-
# CMAKE_PREFIX_PATH="$HOME/.local"
117117
# set deployment target for C++20 compatibility
118118
# make brew-installed OpenMP discoverable by CMake
119119
# do not activate architecture-dependent compiler flags
120120
# 4 jobs in parallel, but do not start new ones if load average exceeds 5
121-
# CIBW_ENVIRONMENT_MACOS: >
122-
# CIBW="true"
123-
# MACOSX_DEPLOYMENT_TARGET=15.0
124-
# CIBW_ENVIRONMENT_WINDOWS: >
125-
# CIBW="true"
121+
CIBW_ENVIRONMENT_MACOS: >
122+
CIBW="true"
123+
MACOSX_DEPLOYMENT_TARGET=15.0
124+
SKBUILD_BUILD_TOOL_ARGS="-j4;-l5"
125+
CIBW_ENVIRONMENT_WINDOWS: >
126+
CIBW="true"
127+
SKBUILD_BUILD_TOOL_ARGS="/m:4;/l:5"
126128
# build 3.10, 3.11, 3.12, 3.13 (with GIL), and 3.14 (with GIL)
127129
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
128130
# skip musl builds, and PyPy builds
@@ -136,20 +138,20 @@ jobs:
136138
echo "{wheel} is not abi3, skipping abi3audit"
137139
fi
138140
# use abi3audit to catch issues with Limited API wheels
139-
# CIBW_REPAIR_WHEEL_COMMAND_MACOS: |
140-
# delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
141-
# if [[ "{wheel}" == *abi3* ]]; then
142-
# pipx run abi3audit --strict --report {wheel}
143-
# else
144-
# echo "{wheel} is not abi3, skipping abi3audit"
145-
# fi
146-
# CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: |
147-
# delvewheel repair -w {dest_dir} {wheel}
148-
# if [[ "{wheel}" == *abi3* ]]; then
149-
# pipx run abi3audit --strict --report {wheel}
150-
# else
151-
# echo "{wheel} is not abi3, skipping abi3audit"
152-
# fi
141+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: |
142+
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
143+
if [[ "{wheel}" == *abi3* ]]; then
144+
pipx run abi3audit --strict --report {wheel}
145+
else
146+
echo "{wheel} is not abi3, skipping abi3audit"
147+
fi
148+
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: |
149+
delvewheel repair -w {dest_dir} {wheel}
150+
if [[ "{wheel}" == *abi3* ]]; then
151+
pipx run abi3audit --strict --report {wheel}
152+
else
153+
echo "{wheel} is not abi3, skipping abi3audit"
154+
fi
153155
CIBW_TEST_COMMAND: python -m pytest {package}/tests
154156
CIBW_TEST_GROUPS: "test"
155157

0 commit comments

Comments
 (0)