Update .gitea/workflows/build.yaml

This commit is contained in:
2026-02-09 11:48:15 -05:00
parent 86daa73e41
commit 4eea57f691

View File

@@ -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: