From 8ecb316d2e362205e23ccc6b660b782aafc60290 Mon Sep 17 00:00:00 2001 From: ohlidalp Date: Sun, 12 Oct 2025 01:56:12 +0200 Subject: [PATCH] CI: Use custom build of OGRE 14.4.1 Inspired by https://github.com/RigsOfRods/rigs-of-rods/blob/master/.github/workflows/linux-native.yml Apparently Ubuntu only ships OGRE 1.7-1.12, see https://launchpad.net/ubuntu/+search?text=ogre --- .github/workflows/ci-build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 2b8700d..713a0d9 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -11,8 +11,18 @@ jobs: - name: Install Dependencies run: | sudo apt update - sudo apt install -y cmake g++ libogre-1.12-dev + sudo apt install -y cmake g++ libxrandr-dev libxt-dev libxaw7-dev libzzip-dev \ + mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libfreetype6-dev nvidia-cg-dev \ + libssl-dev libopenal-dev libois-dev libcurl4-openssl-dev rapidjson-dev gettext libfmt-dev - uses: actions/checkout@v2 + - name: Build OGRE + run: | + git clone --depth 1 --branch v14.4.1 https://github.com/OGRECave/ogre.git && cd ogre + cmake -DCMAKE_BUILD_TYPE=Release -DOGRE_BUILD_DEPENDENCIES=OFF -DOGRE_RESOURCEMANAGER_STRICT=0 \ + -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS=FALSE -DOGRE_BUILD_TOOLS=FALSE -DOGRE_BUILD_SAMPLES=FALSE -DOGRE_BUILD_COMPONENT_PROPERTY=FALSE \ + -DOGRE_BUILD_COMPONENT_JAVA=FALSE -DOGRE_BUILD_COMPONENT_CSHARP=FALSE -DOGRE_BUILD_COMPONENT_PYTHON=FALSE \ + -DOGRE_BUILD_PLUGIN_BSP=FALSE -DOGRE_BUILD_PLUGIN_PCZ=FALSE -DOGRE_BUILD_COMPONENT_HLMS=FALSE -DOGRE_BUILD_COMPONENT_VOLUME=FALSE . + sudo make -j 2 install - name: Test run: | cmake -Bbuild -DCAELUM_BUILD_SAMPLES=ON -DCAELUM_SCRIPT_SUPPORT=ON .