Fix Windows CI: add Qt5 tool symlinks, fix daemon strip path
- Create symlinks qmake->qmake-qt5, lrelease->lrelease-qt5, windeployqt->windeployqt-qt5 for MSYS2 Qt5 tool naming - Fix daemon strip by running in same directory as build output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -35,6 +35,12 @@ jobs:
|
||||
mingw-w64-x86_64-miniupnpc
|
||||
make
|
||||
|
||||
- name: Create Qt5 tool symlinks
|
||||
run: |
|
||||
ln -sf /mingw64/bin/qmake-qt5.exe /mingw64/bin/qmake.exe 2>/dev/null || true
|
||||
ln -sf /mingw64/bin/lrelease-qt5.exe /mingw64/bin/lrelease.exe 2>/dev/null || true
|
||||
ln -sf /mingw64/bin/windeployqt-qt5.exe /mingw64/bin/windeployqt.exe 2>/dev/null || true
|
||||
|
||||
- name: Clean stale build artifacts
|
||||
run: rm -rf build/*.o build/*.h
|
||||
|
||||
@@ -46,7 +52,7 @@ jobs:
|
||||
|
||||
- name: Run qmake
|
||||
run: |
|
||||
qmake-qt5 triangles-qt.pro "RELEASE=1"
|
||||
qmake triangles-qt.pro "RELEASE=1"
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
@@ -56,7 +62,7 @@ jobs:
|
||||
run: |
|
||||
mkdir -p dist
|
||||
cp release/triangles-qt.exe dist/
|
||||
windeployqt-qt5 dist/triangles-qt.exe || true
|
||||
windeployqt dist/triangles-qt.exe || true
|
||||
# Copy runtime DLLs
|
||||
for dll in libgcc_s_seh-1.dll libstdc++-6.dll libwinpthread-1.dll; do
|
||||
cp /mingw64/bin/$dll dist/ 2>/dev/null || true
|
||||
@@ -97,15 +103,15 @@ jobs:
|
||||
cd src
|
||||
mkdir -p obj
|
||||
make -f makefile.mingw DEPSDIR=/mingw64 -j$(nproc)
|
||||
|
||||
- name: Strip daemon
|
||||
run: strip --strip-all src/trianglesd.exe
|
||||
ls -la trianglesd.exe
|
||||
strip --strip-all trianglesd.exe
|
||||
cp trianglesd.exe ../trianglesd.exe
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-daemon
|
||||
path: src/trianglesd.exe
|
||||
path: trianglesd.exe
|
||||
|
||||
build-linux-qt:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
Reference in New Issue
Block a user