From 4eea57f69147da18b6e3c09b8a2630a1fc8a4a47 Mon Sep 17 00:00:00 2001 From: such-gitea Date: Mon, 9 Feb 2026 11:48:15 -0500 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2ed35756f..54f92542f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Build Wownero Core (Mkdir Fix) +name: Build Wownero Core (v4 Actions + FailSafe) on: push: branches: [ master, main ] @@ -29,15 +29,19 @@ jobs: run: echo "192.168.88.230 git.such.software" >> /etc/hosts - name: Checkout + uses: actions/checkout@v4 # Upgraded to v4 to fix network 500s + with: + submodules: recursive + token: ${{ secrets.GITHUB_TOKEN }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Manual config for gitea since checkout@v4 acts differently with self-hosted sometimes + - name: Configure Git URLs run: | - rm -rf * git config --global --add safe.directory '*' git config --global url."http://oauth2:${GITHUB_TOKEN}@git.such.software:3000/Builds/RandomWOW.git".insteadOf "https://codeberg.org/wownero/RandomWOW" git config --global url."http://oauth2:${GITHUB_TOKEN}@git.such.software:3000/Builds/wownero.git".insteadOf "https://codeberg.org/wownero/wownero.git" - git clone http://oauth2:$GITHUB_TOKEN@git.such.software:3000/${{ github.repository }}.git . - git submodule update --init --recursive - name: Download macOS SDK if: contains(matrix.target, 'apple') @@ -53,7 +57,7 @@ jobs: echo "$(pwd)/cmake-3.28.1-linux-x86_64/bin" >> $GITHUB_PATH # ----------------------------------------------------------------------- - # 1. BUILD CONFIGURATION (Known Good "Portable Mac" Logic) + # 1. BUILD CONFIGURATION (Known Good Logic) # ----------------------------------------------------------------------- - name: Sanitize Makefiles (Stable + Mac Compat) run: | @@ -179,7 +183,7 @@ jobs: make -j$(nproc) # ----------------------------------------------------------------------- - # 2. FAIL-SAFE with MKDIR FIX (Crucial Step) + # 2. FAIL-SAFE with MKDIR FIX (Fixes 'cp' crashes) # ----------------------------------------------------------------------- - name: Ensure Static Libs Exist run: | @@ -247,7 +251,7 @@ jobs: tar -czf wownero-core-${{ matrix.target }}.tar.gz -C output . - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 # Upgraded to v4 with: name: wownero-core-${{ matrix.target }} path: wownero-core-${{ matrix.target }}.tar.gz @@ -258,7 +262,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 # Upgraded to v4 - name: Publish Release uses: softprops/action-gh-release@v1 with: