Files
wownero-lws/.gitea/workflows/build.yaml
such-gitea 2b23667d39
Some checks failed
Build Wownero LWS / build-linux (push) Successful in 7m11s
Build Wownero LWS / build-macos (push) Successful in 8m34s
Build Wownero LWS / build-windows (push) Failing after 7m20s
Update .gitea/workflows/build.yaml
2026-01-09 08:31:43 -08:00

177 lines
6.0 KiB
YAML

name: Build Wownero LWS
on:
push:
workflow_dispatch:
# --- GLOBAL FIX FOR SSL UPLOADS ---
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
# ----------------------------------
jobs:
build-macos:
runs-on: macos-latest
steps:
- name: Manual Checkout (Local)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Cleaning workspace..."
rm -rf *
git config --global --add safe.directory '*'
# Clone from Localhost (Port 3000)
echo "Cloning from Localhost..."
git clone http://oauth2:$GITHUB_TOKEN@localhost:3000/${{ github.repository }}.git .
# Update Submodules
git config --global url."https://github.com/".insteadOf "git@github.com:"
git config --global url."https://codeberg.org/".insteadOf "git@codeberg.org:"
echo "Initializing submodules..."
git submodule update --init --recursive
- name: Prepare Environment
run: |
cmake --version
qmake --version || echo "QMake found via brew"
- name: Patch for macOS (Remove librt)
run: |
echo "Patching CMakeLists..."
perl -i -pe 's/\brt\b//g' src/CMakeLists.txt
if [ -f "CMakeLists.txt" ]; then
perl -i -pe 's/\brt\b//g' CMakeLists.txt
fi
- name: Build macOS
run: |
mkdir build && cd build
cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix qt@5) -DCMAKE_BUILD_TYPE=Release
make -j$(sysctl -n hw.ncpu)
- name: Package macOS
run: |
cd build/src
zip ../../wownero-lws-macos.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client
- name: Upload macOS Artifact
uses: actions/upload-artifact@v3
with:
name: wownero-lws-macos
path: wownero-lws-macos.zip
- name: Release macOS
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: wownero-lws-macos.zip
build-linux:
runs-on: ubuntu-latest
steps:
- name: Manual Checkout (LAN)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rm -rf *
# Clone from Mac's LAN IP
git clone http://oauth2:$GITHUB_TOKEN@192.168.88.230:3000/${{ github.repository }}.git .
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init --recursive
- name: Build Linux
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
- name: Package Linux
run: |
cd build/src
zip ../../wownero-lws-linux.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client
- name: Upload Linux Artifact
uses: actions/upload-artifact@v3
with:
name: wownero-lws-linux
path: wownero-lws-linux.zip
- name: Release Linux
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: wownero-lws-linux.zip
build-windows:
runs-on: ubuntu-latest
steps:
- name: Manual Checkout (LAN)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Cleaning workspace..."
rm -rf *
git clone http://oauth2:$GITHUB_TOKEN@192.168.88.230:3000/${{ github.repository }}.git .
git config --global url."https://github.com/".insteadOf "git@github.com:"
git config --global url."https://codeberg.org/".insteadOf "git@codeberg.org:"
echo "Initializing submodules..."
git submodule update --init --recursive
- name: Build Windows via Docker
run: |
echo "Starting Docker Build..."
docker run --rm \
-v "$PWD:/source" \
-w /source \
wownero-builder \
/bin/bash -c "
set -e
# --- FIX 1: Trust the repo (Fixes 'dubious ownership') ---
git config --global --add safe.directory '*'
# --- FIX 2: Relax Boost Requirement (Allow 1.69) ---
echo 'Patching CMakeLists.txt to accept Boost 1.69...'
sed -i 's/1.70/1.69/g' CMakeLists.txt || true
sed -i 's/1\.70/1\.69/g' CMakeLists.txt || true
# --- FIX 3: Enable Missing Boost Libraries (Context & Coroutine) ---
# We find the list of libraries in boost.mk and append the ones we need.
# We target 'filesystem' (which is always there) and add our extras after it.
echo 'Patching boost.mk to build context and coroutine...'
sed -i 's/filesystem/filesystem context coroutine/g' external/monero/contrib/depends/packages/boost.mk
# 1. Build Dependencies
# This will now REBUILD Boost because we changed the recipe (Fix 3).
echo 'Building Dependencies...'
cd external/monero/contrib/depends
make HOST=x86_64-w64-mingw32 -j$(nproc)
# 2. Configure Project
echo 'Configuring Wownero LWS...'
cd ../../../..
mkdir -p build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../external/monero/contrib/depends/x86_64-w64-mingw32/share/toolchain.cmake -DCMAKE_BUILD_TYPE=Release
# 3. Compile
echo 'Compiling...'
make -j$(nproc)
"
- name: Package Windows
run: |
cd build/src
zip ../../wownero-lws-windows.zip wownero-lws-daemon.exe wownero-lws-admin.exe wownero-lws-client.exe
- name: Upload Windows Artifact
uses: actions/upload-artifact@v3
with:
name: wownero-lws-windows
path: wownero-lws-windows.zip
- name: Release Windows
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: wownero-lws-windows.zip