-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (53 loc) · 1.73 KB
/
macos-wheels.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
name: Build macOS Python wheels
on:
push:
branches:
- 'master'
paths:
- '.github/workflows/macos-wheels.yml'
- 'python/**'
- 'src/**'
- 'CMakeLists.txt'
- 'setup.py'
jobs:
build_wheels:
strategy:
matrix:
os: [macos-10.15, macos-11, macos-12]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
name: Build macOS wheel on ${{ matrix.os }} for Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Environment report
run: |
system_profiler SPSoftwareDataType | grep "System Version"
python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine flake8 cmaketools setuptools wheel
- name: Lint with flake8 for syntax errors
run: |
pip install flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Build macOS Python wheel
run: python setup.py bdist_wheel #-w ./dist --no-deps
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: macos-wheels
path: dist/*macosx*.whl
#- name: Publish wheels to PyPI
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# twine upload dist/*macosx*.whl