-
Notifications
You must be signed in to change notification settings - Fork 14
70 lines (61 loc) · 1.9 KB
/
windows.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
66
67
68
69
70
name: Windows
on:
workflow_run:
workflows: [macOS]
types: [completed]
jobs:
build:
runs-on: windows-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
dir: '${{ github.workspace }}/qtdir/'
install-deps: 'true'
archives: 'qtbase'
cache: 'false'
cache-key-prefix: 'install-qt-action'
setup-python: 'true'
tools: ''
set-env: 'true'
tools-only: 'false'
aqtversion: '==3.1.*'
py7zrversion: '==0.20.*'
extra: '--external 7z'
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Python librairies
run: |
python.exe -m ensurepip --upgrade
python.exe -m pip install --upgrade pip
python.exe -m pip install virtualenv
python.exe -m virtualenv venv
./venv/Scripts/activate
python.exe -m pip install wheel setuptools cython
- name: compile library
run: |
cd pointing
qmake
nmake
# mingw32-make
- name: compile Python binding
run: |
./venv/Scripts/activate
cp pointing/release/pointing.lib bindings/Python/cython/
cd bindings/Python/cython/
python.exe --version
python.exe buildcythonlib.py build_ext --inplace
- name: Save the compiled libraries
uses: actions/upload-artifact@v4
with:
path: |
pointing/release/pointing.lib
bindings/Python/cython/libpointing/*.pyd