diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 8ff869829..0d4d160ac 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Build Wownero Core (Clean / Boost 1.90) +name: Build Wownero Core (Clean / Boost 1.90 / CMake 3.28) on: push: branches: [ master, main ] @@ -44,20 +44,31 @@ jobs: curl -L -k -o contrib/depends/SDKs/MacOSX10.15.sdk.tar.gz \ "https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.15.sdk.tar.gz" + # --- NEW STEP: INSTALL MODERN CMAKE --- + - name: Install Modern CMake + run: | + echo "Installing CMake 3.28.1..." + curl -L -o cmake.tar.gz https://github.com/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-linux-x86_64.tar.gz + tar -xf cmake.tar.gz + # Add new cmake to PATH + echo "$(pwd)/cmake-3.28.1-linux-x86_64/bin" >> $GITHUB_PATH + - name: Build Dependencies run: | cd contrib/depends - # This builds Boost 1.90.0 using the file you just updated make HOST=${{ matrix.target }} -j$(nproc) - name: Build Wownero Core run: | PREFIX=$(pwd)/contrib/depends/${{ matrix.target }} mkdir build && cd build + + # Use the new 'cmake' (v3.28) which is now in PATH cmake .. \ -DCMAKE_TOOLCHAIN_FILE=../contrib/depends/${{ matrix.target }}/share/toolchain.cmake \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_STATIC=ON + make -j$(nproc) - name: Package Artifacts