-
Notifications
You must be signed in to change notification settings - Fork 42
44 lines (42 loc) · 1.09 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
name: Build wheels for macOS
on:
workflow_dispatch:
jobs:
build-w64:
runs-on: macos-12
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
name: ${{ matrix.python-version }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Run cmake
working-directory: ./lzo-2.10
run: |
mkdir build
cd build
cmake ..
- name: Build lzo static lib
working-directory: ./lzo-2.10/build
run: make
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Build wheel
env:
LZO_DIR: ./lzo-2.10
run: |
python -m pip install -U pip
python -m pip install -U wheel
python setup.py bdist_wheel
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
if-no-files-found: error