-
Notifications
You must be signed in to change notification settings - Fork 14
50 lines (42 loc) · 1.05 KB
/
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
name: macOS
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_run:
workflows: [Linux]
types:
- completed
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Qt6 and python
run: |
brew update
brew install qt
brew install python@3.12
mkdir venv
python3.12 -m venv venv/
source venv/bin/activate
python3.12 -m pip install --upgrade pip
python3.12 -m pip install setuptools cython
- name: compile library
run: |
cd pointing
qmake
make
- name: compile Python binding
run: |
source venv/bin/activate
cp pointing/libpointing.a bindings/Python/cython/
cd bindings/Python/cython/
python3.12 buildcythonlib.py build_ext --inplace
- name: Save the compiled libraries
uses: actions/upload-artifact@v4
with:
path: |
pointing/libpointing.a
bindings/Python/cython/libpointing/*.so