-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed #13132 - removed deprecated support for qmake (#6891)
- Loading branch information
Showing
31 changed files
with
21 additions
and
954 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,94 +247,6 @@ jobs: | |
run: | | ||
ls lib/*.cpp | xargs -n 1 -P $(nproc) g++ -fsyntax-only -std=c++0x -Ilib -Iexternals -Iexternals/picojson -Iexternals/simplecpp -Iexternals/tinyxml2 -DNONNEG | ||
build_qmake: | ||
|
||
strategy: | ||
matrix: | ||
# no longer build with qmake on MacOS as brew might lack pre-built Qt5 packages causing the step to run for hours | ||
os: [ubuntu-20.04, ubuntu-22.04] | ||
fail-fast: false # Prefer quick result | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install missing software on ubuntu | ||
if: contains(matrix.os, 'ubuntu') | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install qtbase5-dev qttools5-dev libqt5charts5-dev qtchooser | ||
# coreutils contains "nproc" | ||
- name: Install missing software on macos | ||
if: contains(matrix.os, 'macos') | ||
run: | | ||
brew install coreutils qt@5 | ||
# expose qmake | ||
brew link qt@5 --force | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }} | ||
|
||
- name: Build GUI | ||
run: | | ||
export PATH="$(brew --prefix)/opt/ccache/libexec:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
pushd gui | ||
qmake CONFIG+=debug CONFIG+=ccache HAVE_QCHART=yes | ||
make -j$(nproc) | ||
# TODO: binaries are in a different location on macos | ||
- name: Build and Run GUI tests | ||
if: contains(matrix.os, 'ubuntu') | ||
run: | | ||
export PATH="$(brew --prefix)/opt/ccache/libexec:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
pushd gui/test/cppchecklibrarydata | ||
qmake CONFIG+=debug CONFIG+=ccache | ||
make -j$(nproc) | ||
./test-cppchecklibrarydata | ||
popd | ||
pushd gui/test/filelist | ||
qmake CONFIG+=debug CONFIG+=ccache | ||
make -j$(nproc) | ||
./test-filelist | ||
popd | ||
pushd gui/test/projectfile | ||
qmake CONFIG+=debug CONFIG+=ccache | ||
make -j$(nproc) | ||
./test-projectfile | ||
popd | ||
pushd gui/test/resultstree | ||
qmake CONFIG+=debug CONFIG+=ccache | ||
make -j$(nproc) | ||
export QT_QPA_PLATFORM=offscreen | ||
./test-resultstree | ||
popd | ||
pushd gui/test/translationhandler | ||
qmake CONFIG+=debug CONFIG+=ccache | ||
make -j$(nproc) | ||
# TODO: requires X session because of QApplication dependency in translationhandler.cpp | ||
#./test-translationhandler | ||
popd | ||
pushd gui/test/xmlreportv2 | ||
qmake CONFIG+=debug CONFIG+=ccache | ||
make -j$(nproc) | ||
./test-xmlreportv2 | ||
- name: Generate Qt help file | ||
run: | | ||
pushd gui/help | ||
qhelpgenerator online-help.qhcp -o online-help.qhc | ||
- name: Build triage | ||
run: | | ||
export PATH="$(brew --prefix)/opt/ccache/libexec:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
pushd tools/triage | ||
qmake CONFIG+=debug CONFIG+=ccache | ||
make -j$(nproc) | ||
build: | ||
|
||
strategy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
554a69a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@firewave how do I build the triage tool? I don't see an instruction?
554a69a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to use the cmake at the top-level. I dont think the one in tools/triage can be used directly. Also
BUILD_GUI
andBUILD_TESTS
need to be set as well.554a69a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pfultz2 Exactly.
The
BUILD_TESTS
requirement looks weird though. That should probably de-coupled from that and get its own option.