diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 0d4d160ac..c930cd053 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -34,7 +34,21 @@ jobs: run: | rm -rf * git config --global --add safe.directory '*' + + # --- CRITICAL FIX: FORCE LOCAL MIRRORS --- + # These lines tell Git: "If you try to go to Codeberg, GO HERE INSTEAD." + # We use the internal port 3000 and the token to ensure access. + + # 1. Catch 'https://codeberg.org/wownero/RandomWOW' (no .git) + git config --global url."http://oauth2:${GITHUB_TOKEN}@git.such.software:3000/Builds/RandomWOW.git".insteadOf "https://codeberg.org/wownero/RandomWOW" + + # 2. Catch 'https://codeberg.org/wownero/RandomWOW.git' (with .git) + git config --global url."http://oauth2:${GITHUB_TOKEN}@git.such.software:3000/Builds/RandomWOW.git".insteadOf "https://codeberg.org/wownero/RandomWOW.git" + + # 3. Main Clone git clone http://oauth2:$GITHUB_TOKEN@git.such.software:3000/${{ github.repository }}.git . + + # 4. Now update submodules (It will use the re-written URLs above) git submodule update --init --recursive - name: Download macOS SDK @@ -44,7 +58,6 @@ 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..." @@ -56,6 +69,7 @@ jobs: - name: Build Dependencies run: | cd contrib/depends + # This builds Boost 1.90.0 using your updated boost.mk make HOST=${{ matrix.target }} -j$(nproc) - name: Build Wownero Core @@ -63,7 +77,7 @@ jobs: PREFIX=$(pwd)/contrib/depends/${{ matrix.target }} mkdir build && cd build - # Use the new 'cmake' (v3.28) which is now in PATH + # Use the new 'cmake' (v3.28) cmake .. \ -DCMAKE_TOOLCHAIN_FILE=../contrib/depends/${{ matrix.target }}/share/toolchain.cmake \ -DCMAKE_BUILD_TYPE=Release \