|
23 | 23 | - uses: actions/checkout@v3 |
24 | 24 | ############################# LINUX WHEELS ############################# |
25 | 25 | # In case of Linux we need to install compiler and build tools before building the wheels |
26 | | - # We further only build the manylinux wheels, but not the musllinux wheels |
| 26 | + # We only build the manylinux wheels, but not the musllinux wheels (due to some compile problems) |
| 27 | + # We set-up QEMU to enable aarch64 builds in the GitHub Runner (which is x86_64 based) |
27 | 28 | - name: Set up QEMU |
28 | 29 | uses: docker/setup-qemu-action@v3 |
29 | 30 | with: |
|
41 | 42 | output-dir: dist |
42 | 43 | if: matrix.os == 'ubuntu-latest' |
43 | 44 | ############################# MACOS WHEELS ############################# |
44 | | - # Building on macOS requires an installation of gcc since the default clang compiler |
45 | | - # lacks certain features required for building the package |
| 45 | + # We use Apple Clang, the macOS GitHub Runner is nowadays arm64 based |
| 46 | + # The GCC compiler installable via brew does not support cross-compiling for x86_64. Hence, also Apple Claang |
| 47 | + # For the x86_64, we set the MACOSX_DEPLOYMENT_TARGET='10.13' (released 2017) in order to have support for C++17 |
| 48 | + # We don't need this for the arm64 stuff since it works (and macOS on arm64 cam after C++17) |
46 | 49 | - name: Build wheels (macOS ARM) |
47 | 50 | |
48 | 51 | env: |
|
56 | 59 | - name: Build wheels (macOS x86_64) |
57 | 60 | |
58 | 61 | env: |
59 | | - CIBW_BEFORE_BUILD: brew install ninja gcc@12 |
60 | | - CIBW_ENVIRONMENT: "CC=gcc-12 CXX=g++-12" |
| 62 | + CIBW_BEFORE_BUILD: brew install ninja |
| 63 | + CIBW_ENVIRONMENT: 'MACOSX_DEPLOYMENT_TARGET="10.13"' |
61 | 64 | CIBW_ARCHS_MACOS: "x86_64" |
62 | 65 | CIBW_TEST_COMMAND: 'python -c "import polyhedral_gravity"' |
63 | 66 | with: |
|
66 | 69 | if: matrix.os == 'macos-latest' |
67 | 70 | ############################# WINDOWS WHEELS ############################# |
68 | 71 | # Set up the Visual Studio environment on Windows (required, so that CMake finds the compiler) |
| 72 | + # We use the Microsoft Visual Studio Compiler to compile the wheel |
69 | 73 | - uses: ilammy/msvc-dev-cmd@v1 |
70 | 74 | if: matrix.os == 'windows-latest' |
71 | 75 | - name: Build wheels (Windows) |
|
0 commit comments