From 37afbf8ba2da0b5cfdec633ce6ae39a6e04fbd6b Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 18 Feb 2026 19:23:03 -0800 Subject: [PATCH] Convert imgui to git submodule (shallow) --- .github/workflows/build.yml | 22 ++++++++-------------- .gitignore | 3 ++- .gitmodules | 4 ++++ extern/imgui | 1 + 4 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 .gitmodules create mode 160000 extern/imgui diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ddeb036c..daa0365f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,9 +24,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - - name: Clone ImGui - run: git clone --depth 1 https://github.com/ocornut/imgui.git extern/imgui + with: + submodules: true - name: Cache apt packages uses: actions/cache@v4 @@ -84,9 +83,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - - name: Clone ImGui - run: git clone --depth 1 https://github.com/ocornut/imgui.git extern/imgui + with: + submodules: true - name: Install dependencies run: | @@ -165,6 +163,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + submodules: true - name: Set up MSYS2 uses: msys2/setup-msys2@v2 @@ -184,10 +184,6 @@ jobs: mingw-w64-clang-aarch64-ffmpeg git - - name: Clone ImGui - shell: msys2 {0} - run: git clone --depth 1 https://github.com/ocornut/imgui.git extern/imgui - - name: Configure shell: msys2 {0} run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release @@ -221,6 +217,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + submodules: true - name: Set up MSYS2 uses: msys2/setup-msys2@v2 @@ -242,10 +240,6 @@ jobs: mingw-w64-x86_64-nsis git - - name: Clone ImGui - shell: msys2 {0} - run: git clone --depth 1 https://github.com/ocornut/imgui.git extern/imgui - - name: Configure shell: msys2 {0} run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release diff --git a/.gitignore b/.gitignore index 67903dab..aab84ea2 100644 --- a/.gitignore +++ b/.gitignore @@ -41,9 +41,10 @@ wowee *~ .DS_Store -# External dependencies (except CMakeLists.txt) +# External dependencies (except submodules) extern/* !extern/.gitkeep +!extern/imgui # ImGui state imgui.ini diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..d8eaaa16 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "extern/imgui"] + path = extern/imgui + url = https://github.com/ocornut/imgui.git + shallow = true diff --git a/extern/imgui b/extern/imgui new file mode 160000 index 00000000..814c6a19 --- /dev/null +++ b/extern/imgui @@ -0,0 +1 @@ +Subproject commit 814c6a194bcb1172df8b8ac9d6520ac0e77654dc