Skip to content

Commit

Permalink
Fix CI Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 30, 2024
1 parent 0c37dbd commit 47dd4ba
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/cpp_lib_with_bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,30 @@ jobs:
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

- name: install pybind11
# - 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
- name: Build and install (Windows)
if: ${{ matrix.platform == 'windows-latest' }}
shell: bash
run: |
mkdir build
cd build
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
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,11 @@ option(IMGUI_BUNDLE_BUILD_CI_AUTOMATION_TESTS "Build CI automation tests" OFF)
# By default, imgui_bundle and hello_imgui will download and build the required
# libraries automatically, if they cannot be found via cmake's find_package:
# glfw3, lunasvg, freetype, opencv
# To build offline, you can for example pre-install the required libraries with vcpkg,
# see below:
#
# C++ library, install requirements via vcpkg
# --------------------------------------------
# To build offline, you can for example pre-install the required libraries with vcpkg:
#
# git clone https://github.com/microsoft/vcpkg
# ./vcpkg/bootstrap-vcpkg.sh
Expand Down

0 comments on commit 47dd4ba

Please sign in to comment.