python backends: use new ImGui mouse API #878
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CppLib" | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
env: | |
MACOSX_DEPLOYMENT_TARGET: "11.0" | |
jobs: | |
build: | |
name: Cpp Lib | |
runs-on: ${{ matrix.platform }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [windows-2019, macos-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# - name: Setup interactive tmate session | |
# if: ${{ matrix.platform == 'ubuntu-latest' }} | |
# uses: mxschmitt/action-tmate@v3 | |
- name: install xorg-dev on ubuntu | |
run: ./ci_scripts/install_xorg_dev.sh | |
# Install conan & pybind11 | |
- name: install conan and pybind11 (linux and ubuntu) | |
if: ${{ matrix.platform != 'windows-2019' }} | |
run: ./ci_scripts/install_conan_pybind11.sh | |
- name: install conan and pybind11 (windows) | |
if: ${{ matrix.platform == 'windows-2019' }} | |
run: | | |
python3 -m pip install conan | |
conan profile new default --detect | |
python3 -m pip install pybind11 | |
- name: Build and install | |
shell: bash | |
run: | | |
# Optional: set IMMVISION_FETCH_OPENCV to OFF to disable OpenCV/Immvision | |
# ------------------------------------------------------------------------------------ | |
# export IMMVISION_FETCH_OPENCV=OFF | |
# | |
# cmake and build | |
# ------------------------------------------------------------------------------------ | |
mkdir build | |
cd build | |
cmake .. -DIMGUI_BUNDLE_BUILD_PYTHON=ON -DCMAKE_BUILD_TYPE=Release | |
cmake --build . --config Release -j 3 |