Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS / build-cross (tar.gz, , linux-arm64, aarch64-linux-gnu) (push) Failing after 1m5s
Build Wownero LWS / build-cross (tar.gz, , linux-x64, x86_64-linux-gnu) (push) Failing after 49s
Build Wownero LWS / build-macos (push) Successful in 2m2s
Build Wownero LWS / build-cross (zip, .exe, windows-x64, x86_64-w64-mingw32) (push) Failing after 50s
Build Wownero LWS / release (push) Has been skipped

This commit is contained in:
2026-01-20 14:10:16 -05:00
parent 2bc474d050
commit feec09ce2c

View File

@@ -17,6 +17,9 @@ jobs:
runs-on: ubuntu-latest
container:
image: wownero-builder-base:latest
# CRITICAL FIX: Force the container to run as ROOT (UID 0)
# This bypasses all "Permission Denied" and "sudo not found" errors.
options: --user root
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
strategy:
@@ -61,19 +64,16 @@ jobs:
curl -L -k -o sdk.tar.gz \
"https://git.such.software/Builds/wownero/releases/download/${{ env.CORE_VERSION }}/wownero-sdk-${{ matrix.platform }}.tar.gz"
# Extract normally
# Extract normally (We are root now, so this will work)
tar -xf sdk.tar.gz -C wownero-sdk
# CRITICAL FIX: Sudo Privilege Escalation
# We force the runner to take ownership of these files no matter what
echo "Fixing permissions with SUDO..."
sudo chown -R $(id -u):$(id -g) wownero-sdk
sudo chmod -R 777 wownero-sdk
# Sanity Check: Ensure global read/write just in case
chmod -R 777 wownero-sdk
# VERIFICATION: If this cat fails, we know exactly why
# VERIFICATION: This should now succeed without issues
echo "Verifying readability of version.hpp..."
ls -l wownero-sdk/include/boost/version.hpp
cat wownero-sdk/include/boost/version.hpp | head -n 5
head -n 5 wownero-sdk/include/boost/version.hpp
- name: Build LWS
run: |
@@ -95,8 +95,7 @@ jobs:
PLATFORM_FLAGS=""
fi
# Removed manual Boost version flags (CMake ignored them anyway)
# Relying on readable file + BOOST_ROOT
# CMake Configuration
cmake .. \
$PLATFORM_FLAGS \
-DCMAKE_BUILD_TYPE=Release \