mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
Fix CI builds. For some reason bash on windows no longer recognizes luajit without .exe suffix.
Fixes #226
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -30,6 +30,8 @@ jobs:
|
|||||||
elif [ "$GITHUB_OS" == "windows-latest" ];
|
elif [ "$GITHUB_OS" == "windows-latest" ];
|
||||||
then
|
then
|
||||||
vcpkg install luajit
|
vcpkg install luajit
|
||||||
|
echo "/C/vcpkg/packages/luajit_x86-windows/tools" >> $GITHUB_PATH
|
||||||
|
echo "/C/vcpkg/packages/luajit_x86-windows/bin" >> $GITHUB_PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Download Submodules
|
- name: Download Submodules
|
||||||
@@ -47,7 +49,6 @@ jobs:
|
|||||||
- name: Generate Bindings
|
- name: Generate Bindings
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export PATH=$PATH:/C/vcpkg/packages/luajit_x86-windows/tools/:/C/vcpkg/packages/luajit_x86-windows/bin/
|
|
||||||
cd ./generator
|
cd ./generator
|
||||||
bash ./generator.sh
|
bash ./generator.sh
|
||||||
|
|
||||||
|
@@ -16,4 +16,10 @@
|
|||||||
# arg[2] options as words in one string: internal for imgui_internal generation, freetype for freetype generation, comments for comments generation
|
# arg[2] options as words in one string: internal for imgui_internal generation, freetype for freetype generation, comments for comments generation
|
||||||
# examples: "" "internal" "internal freetype" "comments internal"
|
# examples: "" "internal" "internal freetype" "comments internal"
|
||||||
# arg[3..n] name of implementations to generate and/or CLFLAGS (e.g. -DIMGUI_USER_CONFIG or -DIMGUI_USE_WCHAR32)
|
# arg[3..n] name of implementations to generate and/or CLFLAGS (e.g. -DIMGUI_USER_CONFIG or -DIMGUI_USE_WCHAR32)
|
||||||
luajit ./generator.lua gcc "internal" glfw opengl3 opengl2 sdl
|
|
||||||
|
if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]];
|
||||||
|
then
|
||||||
|
suffix='.exe'
|
||||||
|
fi
|
||||||
|
|
||||||
|
luajit$suffix ./generator.lua gcc "internal" glfw opengl3 opengl2 sdl
|
||||||
|
Reference in New Issue
Block a user