Skip to content

Commit

Permalink
adapted cibuildwheel environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Socrats committed Sep 30, 2023
1 parent f0d26d8 commit 3a26cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
CIBW_BEFORE_ALL_LINUX: bash build_tools/github/download_eigen3.sh
CIBW_BEFORE_ALL_WINDOWS: bash build_tools/github/download_eigen3_windows.sh
CIBW_ENVIRONMENT_WINDOWS: CMAKE_BUILD_PARALLEL_LEVEL=2 CMAKE_ARCH="${{ matrix.platform_id == 'win32' && '-A Win32' || '' }}"
CIBW_ENVIRONMENT_MACOS: CMAKE_BUILD_PARALLEL_LEVEL=2 CMAKE_OSX_ARCHITECTURES=${{ matrix.cibw-arch == 'macosx_x86_64' && 'x86_64' || matrix.cibw-arch == 'macosx_arm64' && 'arm64' || matrix.cibw-arch == 'macosx_universal2' && '"arm64;x86_64"' || '' }} BUILD_ARCH=${{ matrix.cibw-arch }} EGTTOOLS_EXTRA_CMAKE_ARGS="-DLIBOMP_DIR='$(brew --prefix libomp)'"
CIBW_ENVIRONMENT_MACOS: CMAKE_BUILD_PARALLEL_LEVEL=2 CMAKE_OSX_ARCHITECTURES=${{ matrix.cibw-arch == 'macosx_x86_64' && 'x86_64' || matrix.cibw-arch == 'macosx_arm64' && 'arm64' || matrix.cibw-arch == 'macosx_universal2' && '"arm64;x86_64"' || '' }} BUILD_ARCH=${{ matrix.cibw-arch }} MACOSX_DEPLOYMENT_TARGET=${{matrix.cibw-arch == 'macosx_arm64' && 12.0 || 10.15}} EGTTOOLS_EXTRA_CMAKE_ARGS=${{matrix.cibw-arch == 'macosx_arm64' && "-DLIBOMP_DIR='$(brew --prefix libomp)' -DMACOSX_DEPLOYMENT_TARGET=12.0" || "-DLIBOMP_DIR='$(brew --prefix libomp)' -DMACOSX_DEPLOYMENT_TARGET=10.5"}}
CIBW_TEST_SKIP: "*_arm64 *_universal2:arm64"
CIBW_TEST_REQUIRES: pytest
CIBW_BEFORE_TEST_MACOS: cd .. && cp -r {package}/tests/ {project}/tests/
Expand Down

0 comments on commit 3a26cad

Please sign in to comment.