@@ -128,38 +128,40 @@ jobs:
128128 name : windows-wheel-${{ matrix.python-version }}
129129 path : ./dist/*.whl
130130
131- # build-mac:
132- # runs-on: macos-latest
133- # permissions:
134- # contents: write
135- # steps:
136- # - name: Checkout
137- # uses: actions/checkout@v4
138- # with:
139- # submodules: "true"
140- # fetch-depth: 0
141- # fetch-tags: true
142- # - name: Initialize submodules
143- # run: git submodule update --init --recursive
144- # - name: Setup CMake 3.x
145- # uses: jwlawson/actions-setup-cmake@v2
146- # with:
147- # cmake-version: '3.31.x'
148- # - name: Set up pyenv
149- # run: |
150- # brew update
151- # brew install pyenv
152- # echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
153- # echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
154- # echo 'eval "$(pyenv init - zsh)"' >> ~/.zshrc
155- # source ~/.zshrc
156- # - name: Build wheels
157- # run: "git config --global --add safe.directory '*' && ./scripts/build_mac.sh"
158- # - name: Upload wheels
159- # uses: actions/upload-artifact@v4
160- # with:
161- # name: mac-wheels-all
162- # path: ./dist/*.whl
131+ build-mac :
132+ runs-on : macos-14
133+ permissions :
134+ contents : write
135+ steps :
136+ - name : Checkout
137+ uses : actions/checkout@v4
138+ with :
139+ submodules : " true"
140+ fetch-depth : 0
141+ fetch-tags : true
142+ - name : Initialize submodules
143+ run : git submodule update --init --recursive
144+ - name : Setup CMake 3.x
145+ uses : jwlawson/actions-setup-cmake@v2
146+ with :
147+ cmake-version : ' 3.31.x'
148+ - name : Set up pyenv
149+ shell : bash
150+ run : |
151+ brew update
152+ brew install pyenv
153+ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
154+ echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
155+ echo 'eval "$(pyenv init - bash)"' >> ~/.bashrc
156+ source ~/.bashrc
157+ - name : Build wheels
158+ shell : bash
159+ run : " git config --global --add safe.directory '*' && ./scripts/build_mac.sh"
160+ - name : Upload wheels
161+ uses : actions/upload-artifact@v4
162+ with :
163+ name : mac-wheels-all
164+ path : ./dist/*.whl
163165
164166 release :
165167 runs-on : ubuntu-latest
@@ -168,7 +170,7 @@ jobs:
168170 build-linux-all,
169171 build-linux-aarch64-all,
170172 build-windows-pybind,
171- # build-mac,
173+ build-mac,
172174 ]
173175 permissions :
174176 contents : write
@@ -208,11 +210,11 @@ jobs:
208210 with :
209211 name : linux-aarch64-wheels-all
210212 path : wheelhouse
211- # - name: Download wheels
212- # uses: actions/download-artifact@v4
213- # with:
214- # name: mac-wheels-all
215- # path: wheelhouse
213+ - name : Download wheels
214+ uses : actions/download-artifact@v4
215+ with :
216+ name : mac-wheels-all
217+ path : wheelhouse
216218 - name : ls
217219 run : ls wheelhouse
218220 - name : Update Nightly Release
0 commit comments