-
Notifications
You must be signed in to change notification settings - Fork 77
52 lines (43 loc) · 1.31 KB
/
cpp_lib_with_bindings.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
name: "CppLib_WithBindings"
on:
workflow_dispatch:
pull_request:
push:
env:
MACOSX_DEPLOYMENT_TARGET: "11.0"
jobs:
build:
name: CppLib_WithBindings
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: install xorg-dev on ubuntu
run: ./ci_scripts/install_xorg_dev.sh
# - name: Setup interactive tmate session
# uses: mxschmitt/action-tmate@v3
- name: Build and install (*nixes)
if: ${{ matrix.platform != 'windows-latest' }}
shell: bash
run: |
python3 -m venv venv
source venv/bin/activate
pip install pybind11
mkdir build && cd build
cmake .. -DIMGUI_BUNDLE_BUILD_PYTHON=ON -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release -j 3
- name: Build and install (Windows)
if: ${{ matrix.platform == 'windows-latest' }}
shell: bash
run: |
python3 -m venv venv
source venv/Scripts/activate # only difference from *nixes...
pip install pybind11
mkdir build && cd build
cmake .. -DIMGUI_BUNDLE_BUILD_PYTHON=ON -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release -j 3