Skip to content

Commit ac919ba

Browse files
committed
More tweaks
1 parent 8429e00 commit ac919ba

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/python_macos.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: MacOS Python
2+
3+
on:
4+
push:
5+
paths:
6+
- "CMakeLists.txt"
7+
- "**/workflows/python_macos.yml"
8+
- "**/cmake/**"
9+
- "**/modules/**"
10+
- "**/thirdparty/**"
11+
- "**/python/**"
12+
- "!**/native/*_android.*"
13+
- "!**/native/*_emscripten.*"
14+
- "!**/native/*_linux.*"
15+
- "!**/native/*_ios.*"
16+
- "!**/native/*_wasm.*"
17+
- "!**/native/*_windows.*"
18+
branches:
19+
- "**"
20+
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
build_python:
27+
name: build_cp${{matrix.python}}-${{ matrix.platform_id }}
28+
runs-on: ${{ matrix.os }}
29+
continue-on-error: false
30+
31+
strategy:
32+
fail-fast: true
33+
matrix:
34+
include:
35+
- { os: macos-15, python: 311, platform_id: macosx_universal2, cibw_archs: universal2 }
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: seanmiddleditch/gha-setup-ninja@master
40+
41+
- name: Setup and install python
42+
uses: actions/setup-python@v5
43+
with:
44+
python-version: "3.11"
45+
46+
- name: Build wheels
47+
uses: pypa/[email protected]
48+
env:
49+
CIBW_ARCHS: ${{matrix.cibw_archs}}
50+
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
51+
#CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"
52+
CIBW_DEBUG_TRACEBACK: TRUE
53+
CIBW_ENVIRONMENT: |
54+
CIBW_DEBUG_TRACEBACK=TRUE MACOSX_DEPLOYMENT_TARGET=11.0 YUP_OSX_DEPLOYMENT_TARGET=11.0 YUP_OSX_ARCHITECTURES="x86_64;arm64"
55+
with:
56+
package-dir: python
57+
58+
- name: Store failures artifacts
59+
if: failure()
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: compare-data
63+
path: |
64+
python/tests/compare_data/
65+
!python/tests/compare_data/.gitignore
66+
if-no-files-found: ignore
67+
retention-days: 5
68+
compression-level: 0
69+
overwrite: true

0 commit comments

Comments
 (0)