forked from such-gitea/wownero
All checks were successful
Build Wownero Core (Clean / Boost 1.90 / CMake 3.28) / build-all (aarch64-apple-darwin11) (push) Successful in 11m57s
Build Wownero Core (Clean / Boost 1.90 / CMake 3.28) / build-all (aarch64-linux-gnu) (push) Successful in 8m39s
Build Wownero Core (Clean / Boost 1.90 / CMake 3.28) / build-all (riscv64-linux-gnu) (push) Successful in 12m11s
Build Wownero Core (Clean / Boost 1.90 / CMake 3.28) / build-all (x86_64-apple-darwin11) (push) Successful in 12m9s
Build Wownero Core (Clean / Boost 1.90 / CMake 3.28) / build-all (x86_64-linux-gnu) (push) Successful in 8m24s
Build Wownero Core (Clean / Boost 1.90 / CMake 3.28) / build-all (x86_64-w64-mingw32) (push) Successful in 9m40s
Build Wownero Core (Clean / Boost 1.90 / CMake 3.28) / release (push) Successful in 33s
117 lines
4.2 KiB
YAML
117 lines
4.2 KiB
YAML
name: Build Wownero Core (Clean / Boost 1.90 / CMake 3.28)
|
|
on:
|
|
push:
|
|
branches: [ master, main ]
|
|
tags: [ 'v*' ]
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
NODE_TLS_REJECT_UNAUTHORIZED: '0'
|
|
|
|
jobs:
|
|
build-all:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: wownero-builder-base:latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- x86_64-linux-gnu # Linux x64
|
|
- x86_64-w64-mingw32 # Windows x64
|
|
- aarch64-linux-gnu # Linux ARM64
|
|
- riscv64-linux-gnu # Linux RISC-V
|
|
- x86_64-apple-darwin11 # macOS Intel
|
|
- aarch64-apple-darwin11 # macOS ARM
|
|
|
|
steps:
|
|
- name: Fix DNS
|
|
run: echo "192.168.88.230 git.such.software" >> /etc/hosts
|
|
|
|
- name: Checkout
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
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
|
|
if: contains(matrix.target, 'apple')
|
|
run: |
|
|
mkdir -p contrib/depends/SDKs
|
|
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"
|
|
|
|
- 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 your updated boost.mk
|
|
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)
|
|
cmake .. \
|
|
-DCMAKE_TOOLCHAIN_FILE=../contrib/depends/${{ matrix.target }}/share/toolchain.cmake \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_STATIC=ON
|
|
|
|
make -j$(nproc)
|
|
|
|
- name: Package Artifacts
|
|
run: |
|
|
LIB_DIR="contrib/depends/${{ matrix.target }}/lib"
|
|
INC_DIR="contrib/depends/${{ matrix.target }}/include"
|
|
mkdir -p output/lib output/include output/bin
|
|
find build/bin -type f -exec cp {} output/bin/ \;
|
|
cp $LIB_DIR/*.a output/lib/
|
|
find build -name "*.a" -exec cp {} output/lib/ \;
|
|
cp -r src output/include/wownero-src
|
|
cp -r $INC_DIR/* output/include/
|
|
tar -czf wownero-core-${{ matrix.target }}.tar.gz -C output .
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: wownero-core-${{ matrix.target }}
|
|
path: wownero-core-${{ matrix.target }}.tar.gz
|
|
|
|
release:
|
|
needs: build-all
|
|
runs-on: ubuntu-latest
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
steps:
|
|
- name: Download Artifacts
|
|
uses: actions/download-artifact@v3
|
|
- name: Publish Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: |
|
|
wownero-core-*/wownero-core-*.tar.gz |