Skip to content

Commit

Permalink
Windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Géry Casiez committed Dec 8, 2024
1 parent 35b0bf3 commit 3507449
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ jobs:
. venv/bin/activate
python3.12 -m pip install --upgrade pip
python3.12 -m pip install setuptools cython
- name: compile library
run: qmake6 && make

- name: compile Python binding
run: |
. venv/bin/activate
cp pointing/libpointing.a bindings/Python/cython/
cd bindings/Python/cython/
python3 buildcythonlib.py build_ext --inplace
- name: Save the compiled libraries
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ jobs:
run: |
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:
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Windows

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: windows-latest

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
qmake6
nmake
# mingw32-make

# - name: compile Python binding
# run: |
# ./venv/Scripts/activate
# cp pointing/release/libpointing.a 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/libpointing.a
# bindings/Python/cython/libpointing/*.so

0 comments on commit 3507449

Please sign in to comment.