-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (43 loc) · 1.35 KB
/
build_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
name: Build Windows
on:
push:
branches:
- master
- develop
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-2019
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install wheel
- name: Configure CMake
run: |
cmake ${{github.workspace}} -B ${{github.workspace}}/build `
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} `
-DROMOCC_BUILD_TESTS=OFF `
-DROMOCC_BUILD_EXAMPLES=OFF `
-DROMOCC_BUILD_PYTHON_BINDINGS=ON `
- name: Build libromocc
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4
- name: Build pyromocc python wheel
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target create_python_wheel
- name: Upload Python wheel
uses: actions/upload-artifact@v3
with:
name: Python wheel
path: ${{github.workspace}}/build/pyromocc/dist/pyromocc-*.whl
if-no-files-found: error