|
72 | 72 | steps: |
73 | 73 | - name: Print home directory |
74 | 74 | run: echo Home directory inside container $HOME |
75 | | - |
| 75 | + - name: Setup cmake |
| 76 | + if: matrix.os == 'macos-latest' |
| 77 | + |
76 | 78 | - name: Cache .hunter folder |
77 | 79 | if: matrix.os != 'windows-latest' |
78 | 80 | uses: actions/cache@v3 |
@@ -230,13 +232,13 @@ jobs: |
230 | 232 | ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} |
231 | 233 |
|
232 | 234 | # This job builds wheels for macOS x86_64 arch |
233 | | - build-macos-x86_64: |
| 235 | + build-macos: |
234 | 236 | needs: build-docstrings |
235 | 237 | runs-on: macos-latest |
236 | 238 | strategy: |
237 | 239 | matrix: |
238 | | - python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12'] |
239 | | - fail-fast: false |
| 240 | + python-version: [3.8, 3.9, '3.10', '3.11', '3.12'] |
| 241 | + os: [macos-13, macos-14] # macos-13 is x64, macos-14 is arm64 |
240 | 242 | steps: |
241 | 243 | - name: Cache .hunter folder |
242 | 244 | uses: actions/cache@v3 |
@@ -290,63 +292,6 @@ jobs: |
290 | 292 | ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} |
291 | 293 | ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} |
292 | 294 |
|
293 | | - # This job builds wheels for macOS arm64 arch |
294 | | - build-macos-arm64: |
295 | | - needs: build-docstrings |
296 | | - runs-on: [self-hosted, macOS, ARM64] |
297 | | - steps: |
298 | | - # Cached locally on runner |
299 | | - # - name: Cache .hunter folder |
300 | | - # uses: actions/cache@v3 |
301 | | - # with: |
302 | | - # path: ~/.hunter |
303 | | - # key: hunter-macos-latest |
304 | | - - name: List .hunter cache directory |
305 | | - run: | |
306 | | - ls -a -l ~/.hunter/_Base/ || true |
307 | | - echo "PATH=$PATH" |
308 | | -
|
309 | | - - uses: actions/checkout@v3 |
310 | | - with: |
311 | | - submodules: 'recursive' |
312 | | - |
313 | | - - uses: actions/download-artifact@v3 |
314 | | - with: |
315 | | - name: 'docstrings' |
316 | | - path: docstrings |
317 | | - - name: Specify docstring to use while building the wheel |
318 | | - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV |
319 | | - |
320 | | - - name: Append build hash if not a tagged commit |
321 | | - if: startsWith(github.ref, 'refs/tags/v') != true |
322 | | - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV |
323 | | - |
324 | | - # - name: Build and install depthai-core |
325 | | - # run: | |
326 | | - # echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV |
327 | | - # cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake |
328 | | - # cmake --build build_core --target install --parallel 4 |
329 | | - # echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV |
330 | | - |
331 | | - - name: Build wheels |
332 | | - run: for PYBIN in {9..12}; do "python3.${PYBIN}" -m pip wheel . -w wheelhouse/ --verbose; done |
333 | | - |
334 | | - - name: Auditing wheels |
335 | | - run: delocate-wheel -v -w wheelhouse/audited wheelhouse/*.whl |
336 | | - |
337 | | - - name: Archive wheel artifacts |
338 | | - uses: actions/upload-artifact@v3 |
339 | | - with: |
340 | | - name: audited-wheels |
341 | | - path: wheelhouse/audited/ |
342 | | - - name: Deploy wheels to artifactory (if not a release) |
343 | | - if: startsWith(github.ref, 'refs/tags/v') != true |
344 | | - run: bash ./ci/upload-artifactory.sh |
345 | | - env: |
346 | | - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} |
347 | | - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} |
348 | | - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} |
349 | | - |
350 | 295 | # This job builds wheels for x86_64 arch |
351 | 296 | build-linux-x86_64: |
352 | 297 | needs: build-docstrings |
@@ -470,7 +415,7 @@ jobs: |
470 | 415 |
|
471 | 416 | release: |
472 | 417 | if: startsWith(github.ref, 'refs/tags/v') |
473 | | - needs: [pytest, build-linux-armhf, build-windows-x86_64, build-macos-x86_64, build-macos-arm64, build-linux-x86_64, build-linux-arm64] |
| 418 | + needs: [pytest, build-linux-armhf, build-windows-x86_64, build-macos, build-linux-x86_64, build-linux-arm64] |
474 | 419 | runs-on: ubuntu-latest |
475 | 420 |
|
476 | 421 | steps: |
|
0 commit comments