From 4c826266862fb0a645de69d2f7693337ed256ae6 Mon Sep 17 00:00:00 2001 From: Paul Jones Date: Sun, 11 May 2025 16:18:48 -0400 Subject: [PATCH 1/8] Create cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 39 +++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/cmake-single-platform.yml diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml new file mode 100644 index 0000000..4bd1c79 --- /dev/null +++ b/.github/workflows/cmake-single-platform.yml @@ -0,0 +1,39 @@ +# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage. +# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml +name: CMake on a single platform + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. + # You can convert this to a matrix build if you need cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Configure CMake + # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. + # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Test + working-directory: ${{github.workspace}}/build + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest -C ${{env.BUILD_TYPE}} + From e094fb30f10d2722d6db1d4f0c76fa2188b6af45 Mon Sep 17 00:00:00 2001 From: Paul Jones Date: Sun, 11 May 2025 16:28:10 -0400 Subject: [PATCH 2/8] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 4bd1c79..4d9efaf 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -21,6 +21,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install dependencies + run: | + apt-get install libsdl2-image-dev - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. From 7d2d5f92c713c9de3be15240d2cd987844790136 Mon Sep 17 00:00:00 2001 From: Paul Jones Date: Sun, 11 May 2025 16:29:49 -0400 Subject: [PATCH 3/8] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 4d9efaf..49aec31 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies run: | - apt-get install libsdl2-image-dev + sudo apt-get install libsdl2-image-dev - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. From 8160ac0da23de5afab4e59de3c52617cfd055990 Mon Sep 17 00:00:00 2001 From: Paul Jones Date: Sun, 11 May 2025 16:49:28 -0400 Subject: [PATCH 4/8] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 49aec31..27e2554 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies run: | - sudo apt-get install libsdl2-image-dev + sudo apt-get install libsdl2-image-dev libhoel-dev libxdg-basedir-dev libargtable2-dev libconfig-dev libncurses-dev libtar-dev - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. From 955c7797010e1f9a8047a80e4fdbcfc5e5e81481 Mon Sep 17 00:00:00 2001 From: Paul Jones Date: Sun, 11 May 2025 16:52:12 -0400 Subject: [PATCH 5/8] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 27e2554..142f0ca 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -24,6 +24,10 @@ jobs: - name: Install dependencies run: | sudo apt-get install libsdl2-image-dev libhoel-dev libxdg-basedir-dev libargtable2-dev libconfig-dev libncurses-dev libtar-dev + - name: Pull Submodules + run: | + git submodule sync --recursive + git submodule update --init --recursive - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. From 2dd5aff2203229c2c3099de18a43baf3b99b8c35 Mon Sep 17 00:00:00 2001 From: Paul Jones Date: Sun, 11 May 2025 16:54:03 -0400 Subject: [PATCH 6/8] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 142f0ca..eb28775 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies run: | - sudo apt-get install libsdl2-image-dev libhoel-dev libxdg-basedir-dev libargtable2-dev libconfig-dev libncurses-dev libtar-dev + sudo apt-get install libsdl2-image-dev libhoel-dev libxdg-basedir-dev libargtable2-dev libconfig-dev libncurses-dev libtar-dev libuv-dev - name: Pull Submodules run: | git submodule sync --recursive From 2cf6113df0e6ecbdf0963e642bd4182dd565c5e7 Mon Sep 17 00:00:00 2001 From: Paul Jones Date: Sun, 11 May 2025 16:54:24 -0400 Subject: [PATCH 7/8] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index eb28775..107d1fc 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies run: | - sudo apt-get install libsdl2-image-dev libhoel-dev libxdg-basedir-dev libargtable2-dev libconfig-dev libncurses-dev libtar-dev libuv-dev + sudo apt-get install libsdl2-image-dev libhoel-dev libxdg-basedir-dev libargtable2-dev libconfig-dev libncurses-dev libtar-dev libuv1-dev - name: Pull Submodules run: | git submodule sync --recursive From 406f7de9ce7da24624e0995cae02acdfe8c55a48 Mon Sep 17 00:00:00 2001 From: Paul Jones Date: Sun, 11 May 2025 16:57:19 -0400 Subject: [PATCH 8/8] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 107d1fc..0d071ca 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies run: | - sudo apt-get install libsdl2-image-dev libhoel-dev libxdg-basedir-dev libargtable2-dev libconfig-dev libncurses-dev libtar-dev libuv1-dev + sudo apt-get install libsdl2-image-dev libhoel-dev libxdg-basedir-dev libargtable2-dev libconfig-dev libncurses-dev libtar-dev libuv1-dev libmicrohttpd-dev - name: Pull Submodules run: | git submodule sync --recursive