Fix all 5 CI build failures in build-all.yml
- Linux: add chmod +x build_detect_platform for LevelDB builds - Linux daemon: add separate LevelDB build step (was missing) - macOS: clean stale Windows .o files from git before building - Windows Qt: add qt5-tools package, use full qmake path - Windows daemon: combine build+strip in same step to fix path issue Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,7 @@ jobs:
|
||||
install: >-
|
||||
mingw-w64-x86_64-gcc
|
||||
mingw-w64-x86_64-qt5-base
|
||||
mingw-w64-x86_64-qt5-tools
|
||||
mingw-w64-x86_64-boost
|
||||
mingw-w64-x86_64-openssl
|
||||
mingw-w64-x86_64-db
|
||||
@@ -34,6 +35,9 @@ jobs:
|
||||
mingw-w64-x86_64-miniupnpc
|
||||
make
|
||||
|
||||
- name: Clean stale build artifacts
|
||||
run: rm -rf build/*.o build/*.h
|
||||
|
||||
- name: Build LevelDB
|
||||
run: |
|
||||
cd src/leveldb
|
||||
@@ -42,7 +46,7 @@ jobs:
|
||||
|
||||
- name: Run qmake
|
||||
run: |
|
||||
qmake triangles-qt.pro "RELEASE=1"
|
||||
/mingw64/bin/qmake triangles-qt.pro "RELEASE=1"
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
@@ -88,14 +92,12 @@ jobs:
|
||||
mingw-w64-x86_64-miniupnpc
|
||||
make
|
||||
|
||||
- name: Build daemon
|
||||
- name: Build and strip daemon
|
||||
run: |
|
||||
cd src
|
||||
mkdir -p obj
|
||||
make -f makefile.mingw -j$(nproc)
|
||||
|
||||
- name: Strip binary
|
||||
run: strip --strip-all src/trianglesd.exe
|
||||
strip --strip-all trianglesd.exe
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -118,9 +120,13 @@ jobs:
|
||||
- name: Build LevelDB
|
||||
run: |
|
||||
cd src/leveldb
|
||||
chmod +x build_detect_platform
|
||||
make clean || true
|
||||
make OPT="-O2" libleveldb.a libmemenv.a
|
||||
|
||||
- name: Clean stale build artifacts
|
||||
run: rm -rf build/*.o
|
||||
|
||||
- name: Run qmake
|
||||
run: qmake triangles-qt.pro "RELEASE=1"
|
||||
|
||||
@@ -150,6 +156,13 @@ jobs:
|
||||
sudo apt-get install -y build-essential libboost-all-dev \
|
||||
libssl-dev libdb++-dev libleveldb-dev libevent-dev libminiupnpc-dev
|
||||
|
||||
- name: Build LevelDB
|
||||
run: |
|
||||
cd src/leveldb
|
||||
chmod +x build_detect_platform
|
||||
make clean || true
|
||||
make OPT="-O2" libleveldb.a libmemenv.a
|
||||
|
||||
- name: Build daemon
|
||||
run: |
|
||||
cd src
|
||||
@@ -177,6 +190,9 @@ jobs:
|
||||
run: |
|
||||
brew install qt@5 openssl@3 boost berkeley-db@5 leveldb libevent miniupnpc
|
||||
|
||||
- name: Clean stale build artifacts
|
||||
run: rm -rf build/*.o build/*.h
|
||||
|
||||
- name: Build LevelDB
|
||||
run: |
|
||||
cd src/leveldb
|
||||
|
||||
Reference in New Issue
Block a user