Skip to content

Commit

Permalink
actions: use cmake for Linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Nov 23, 2024
1 parent b747ea8 commit 46d7895
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,25 @@ jobs:
- name: Configure for QT5 build
if: ${{ matrix.task == 'compile-qt5' }}
run: |
${QMAKE} QMAKE_CXX="${CXX}" QMAKE_CC="${CC}" QMAKE_LINK="${CXX}" QMAKE_LINK_SHLIB="${CXX}" CONFIG+=appimage FORCECONFIG=release
# force a release build
sed -i -e 's/Debug/Release/g' CMakeLists.txt
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH="$QTDIR/lib/cmake/" -Dappimage=ON -DINSTALL_ROOT=$TARGET_DIR ..
- name: Configure for QT5QML build
if: ${{ matrix.task == 'compile-qt5qml' }}
run: |
$QMAKE QMAKE_CXX="$CXX" QMAKE_CC="$CC" QMAKE_LINK="$CXX" QMAKE_LINK_SHLIB="$CXX" CONFIG+=appimage CONFIG+=qmlui FORCECONFIG=release
# force a release build
sed -i -e 's/Debug/Release/g' CMakeLists.txt
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH="$QTDIR/lib/cmake/" -Dqmlui=ON -Dappimage=ON -DINSTALL_ROOT=$TARGET_DIR ..
- name: Configure for QT5 coverage build
if: ${{ matrix.task == 'coverage-qt5' }}
run: |
$QMAKE QMAKE_CXX="$CXX" QMAKE_CC="$CC" QMAKE_LINK="$CXX" QMAKE_LINK_SHLIB="$CXX" CONFIG+=coverage
#QMAKE_CXXFLAGS+="-fno-sized-deallocation"
- name: Build
run: make -j $NPROC
Expand Down

0 comments on commit 46d7895

Please sign in to comment.