Fixed parsing of enum values with (int) casts #50
Workflow file for this run
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: build | |
on: | |
push: | |
pull_request: | |
workflow_run: | |
# Use a workflow as a trigger of scheduled builds. Forked repositories can disable scheduled builds by disabling | |
# "scheduled" workflow, while maintaining ability to perform local CI builds. | |
workflows: | |
- scheduled | |
types: | |
- requested | |
jobs: | |
Linux: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
branch: | |
- master | |
- docking | |
compiler: | |
- gcc | |
- clang | |
flag_nogeneratedefaultargfunctions: | |
- nogeneratedefaultargfunctions | |
- withgeneratedefaultargfunctions | |
steps: | |
# Checkout both repositories | |
- uses: actions/checkout@v3 | |
- uses: actions/checkout@v3 | |
with: | |
path: imgui | |
repository: ocornut/imgui | |
ref: ${{ matrix.branch }} | |
fetch-depth: 1 | |
- name: Dependencies | |
run: | | |
sudo pip3 install ply | |
- name: Generate cimgui | |
run: >- | |
${{ | |
format('python3 dear_bindings.py --output cimgui {0} --generateunformattedfunctions imgui/imgui.h', | |
matrix.flag_nogeneratedefaultargfunctions == 'nogeneratedefaultargfunctions' && '--nogeneratedefaultargfunctions' || '') | |
}} | |
- name: Generate cimgui_internal | |
run: >- | |
${{ | |
format('python3 dear_bindings.py --output cimgui_internal {0} --generateunformattedfunctions --config-include imgui/imgui.h imgui/imgui_internal.h', | |
matrix.flag_nogeneratedefaultargfunctions == 'nogeneratedefaultargfunctions' && '--nogeneratedefaultargfunctions' || '') | |
}} | |
- name: Build | |
run: | | |
${{ matrix.compiler }} \ | |
-D${{ matrix.flag_nogeneratedefaultargfunctions == 'withgeneratedefaultargfunctions' && 'CIMGUI_WITH_GENERATED_DEFAULT_ARG_FUNCTIONS' || 'CIMGUI_NO_GENERATED_DEFAULT_ARG_FUNCTIONS' }} \ | |
-o example_null \ | |
-Iimgui -I. \ | |
-x c examples/example_null/main.c \ | |
-x c++ cimgui.cpp \ | |
-x c++ cimgui_internal.cpp \ | |
imgui/imgui.cpp \ | |
imgui/imgui_demo.cpp \ | |
imgui/imgui_draw.cpp \ | |
imgui/imgui_tables.cpp \ | |
imgui/imgui_widgets.cpp \ | |
-lm -lstdc++ | |
- name: Run | |
run: ./example_null | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dear_bindings_${{ matrix.branch }} | |
path: | | |
cimgui.* | |
cimgui_internal.* |