@@ -37,22 +37,36 @@ jobs:
3737 name : ${{ matrix.config.name }}
3838 runs-on : ${{ matrix.config.os }}
3939 strategy :
40- fail-fast : false
40+ # fail-fast: false
4141 matrix :
4242 config :
4343 - {
44- name : " MacOS 10.15" ,
45- os : macos-latest
44+ name : " MacOS Latest (Intel)" ,
45+ os : macos-latest,
46+ cibw-arch : macosx_x86_64
4647 }
4748 - {
48- name : " Ubuntu Latest" ,
49- os : ubuntu-latest
49+ name : " MacOS Latest (Apple Silicon)" ,
50+ os : macos-latest,
51+ cibw-arch : macosx_arm64
52+ }
53+ - {
54+ name : " Ubuntu Latest (x86_64)" ,
55+ os : ubuntu-latest,
56+ cibw-arch : manylinux_x86_64
57+ }
58+ - {
59+ name : " Ubuntu Latest (i686)" ,
60+ os : ubuntu-latest,
61+ cibw-arch : manylinux_i686
5062 }
5163 - {
5264 name : " Windows Latest" ,
53- os : windows-latest
65+ os : windows-latest,
66+ cibw-arch : win_amd64
5467 }
55-
68+
69+
5670 steps :
5771 - name : Checkout
5872 uses : actions/checkout@v3
@@ -65,12 +79,20 @@ jobs:
6579 - name : Install Python dependencies
6680 run : python -m pip install cibuildwheel==2.5.0
6781
82+ - name : Configure cibuildwheel
83+ shell : bash
84+ run : |
85+ CMAKE_OSX_ARCHITECTURES=${{ matrix.config.cibw-arch == 'macosx_x86_64' && 'x86_64' || matrix.config.cibw-arch == 'macosx_arm64' && 'arm64' || matrix.config.cibw-arch == 'macosx_universal2' && '"arm64;x86_64"' || '' }}
86+ echo "CIBW_ARCHS_MACOS=x86_64 arm64" >> $GITHUB_ENV
87+ echo "CIBW_BUILD=*-${{ matrix.config.cibw-arch }}" >> $GITHUB_ENV
88+ echo "CIBW_ENVIRONMENT_MACOS=CMAKE_OSX_ARCHITECTURES=\"$CMAKE_OSX_ARCHITECTURES\"" >> $GITHUB_ENV
89+
6890 - name : Build wheels
6991 run : python -m cibuildwheel --output-dir dist
7092 env :
71- CIBW_BEFORE_BUILD : python -m pip install cmake>=3.18
93+ CIBW_BEFORE_BUILD_LINUX : " yum remove -y cmake"
94+ CIBW_BEFORE_BUILD : " python -m pip install cmake>=3.18"
7295 CIBW_SKIP : " *-win32 pp*-macosx*"
73- CIBW_ARCHS_MACOS : " x86_64 arm64 universal2"
7496
7597 - uses : actions/upload-artifact@v2
7698 with :
0 commit comments