From e3136bb882b3789642d581d557beb021a87310f6 Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Wed, 6 Nov 2019 10:20:51 +0200 Subject: [PATCH] CI tall luajit and add bindings generation step. --- .github/workflows/build.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce9cbfb..050578a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,22 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Install Dependencies + shell: bash + env: + GITHUB_OS: ${{ matrix.os }} + run: | + if [ "$GITHUB_OS" == "macOS-latest" ]; + then + brew install luajit + elif [ "$GITHUB_OS" == "ubuntu-latest" ]; + then + sudo apt-get install -y luajit + elif [ "$GITHUB_OS" == "windows-latest" ]; + then + vcpkg install luajit + fi + - name: Download Submodules run: | git submodule update --init --recursive @@ -28,6 +44,13 @@ jobs: git clone https://github.com/ocornut/imgui.git if: github.event_name == 'schedule' + - name: Generate Bindings + shell: bash + run: | + export PATH=$PATH:/C/vcpkg/packages/luajit_x86-windows/tools/:/C/vcpkg/packages/luajit_x86-windows/bin/ + cd ./generator + bash ./generator.sh + - name: CMake run: | mkdir cmake-build @@ -45,7 +68,8 @@ jobs: GITHUB_OS: ${{ matrix.os }} working-directory: cmake-build run: | - if [ "$GITHUB_OS" == "windows-latest" ]; then + if [ "$GITHUB_OS" == "windows-latest" ]; + then ./Debug/cimgui_test.exe else ./cimgui_test