-
Notifications
You must be signed in to change notification settings - Fork 12
65 lines (57 loc) · 1.64 KB
/
build_macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: macOS Builds
on:
push:
branches:
- '**'
paths:
- "**/workflows/build_macos.yml"
- "**/cmake/**"
- "**/JUCE/**"
- "**/modules/**"
- "**/tests/**"
- ".gitmodules"
- "CMakeLists.txt"
- "MANIFEST.in"
- "pyproject.toml"
- "setup.py"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-macos:
name: Build cp${{matrix.python}}-${{ matrix.platform_id }}
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: true
matrix:
include:
- { os: macos-latest, python: 310, platform_id: macosx_universal2, cibw_archs: universal2 }
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup and install python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Build wheels
uses: pypa/cibuildwheel@v2.19.1
env:
CIBW_ARCHS: ${{matrix.cibw_archs}}
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_TEST_SKIP: "*-macosx_universal2:arm64"
CIBW_ENVIRONMENT: MACOSX_DEPLOYMENT_TARGET=10.15
- name: Store failures artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: compare-data
path: |
tests/compare_data/
!tests/compare_data/.gitignore
if-no-files-found: ignore
retention-days: 5
compression-level: 0
overwrite: true