Skip to content

Commit

Permalink
Attempt!
Browse files Browse the repository at this point in the history
  • Loading branch information
adalisk-emikhaylov committed Sep 24, 2024
1 parent 95a5dec commit 86916c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pip-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,13 @@ jobs:
for /d %%a in ("C:\msys64_meshlib_mrbind\msys64\*") do move /y "%%~fa" C:\msys64_meshlib_mrbind
rmdir C:\msys64_meshlib_mrbind\msys64
# For reason `./scripts/mrbind/install_mrbind_windows_msys2.bat` doesn't work here in CI, build manually.
# For some reason `./scripts/mrbind/install_mrbind_windows_msys2.bat` doesn't work here in CI, build manually.
- name: Build MRBind
run: C:\msys64_meshlib_mrbind\msys2_shell.cmd -defterm -no-start -clang64 -full-path -c "cd ~ && git clone https://github.com/MeshInspector/mrbind && cd mrbind && cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebugInfo && cmake --build build"

- name: Generate and build MRBind bindings
shell: cmd
# Note that `\` doesn't work here as a line continuation, and will lead to weird errors.
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64
./scripts/mrbind/generate_win.bat -B --trace PACKAGE_NAME=meshlib PYTHON_PKGCONF_NAME= PYTHON_CFLAGS=-IC:/hostedtoolcache/windows/python/${{steps.setup-python.outputs.python-version}}/x64/include PYTHON_LDFLAGS="-LC:/hostedtoolcache/windows/python/${{steps.setup-python.outputs.python-version}}/x64/libs -l${{matrix.py-file}}"
Expand Down Expand Up @@ -396,7 +397,7 @@ jobs:
# `MACOS_MIN_VER` picked arbitrarily to match what Apple Clang uses when building MeshLib.
# Not setting this or setting a different value cases a warning when linking the bindings, and you can get the correct (?) value from those warnings.
run: |
make --version && make -f ./scripts/mrbind/generate.mk -B --trace PACKAGE_NAME=meshlib MACOS_MIN_VER=12.7 PYTHON_PKGCONF_NAME=python-${{matrix.py-version}}-embed
make --version && make -f ./scripts/mrbind/generate.mk -B --trace PACKAGE_NAME=meshlib MACOS_MIN_VER=12.7 PYTHON_PKGCONF_NAME=python-${{matrix.py-version}}-embed -DMB_PB11_DEBUG_NAMES
- name: Unit Tests
# Using `cd` here fixes weird library loading issues.
Expand Down

0 comments on commit 86916c2

Please sign in to comment.