CI-unixish.yml: actually perform qmake build on macos (#4418)

This commit is contained in:
Oliver Stöneberg 2022-09-15 20:26:21 +02:00 committed by GitHub
parent 76244de640
commit a536d53d62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 18 deletions

View File

@ -212,65 +212,64 @@ jobs:
if: contains(matrix.os, 'macos') if: contains(matrix.os, 'macos')
run: | run: |
brew install coreutils qt@5 brew install coreutils qt@5
# expose qmake
brew link qt@5 --force
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1.2 uses: hendrikmuhs/ccache-action@v1.2
if: contains(matrix.os, 'ubuntu')
with: with:
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }} key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
- name: Build GUI on ubuntu - name: Build GUI
if: contains(matrix.os, 'ubuntu')
run: | run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" export PATH="$(brew --prefix)/opt/ccache/libexec:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
pushd gui pushd gui
qmake CONFIG+=debug HAVE_QCHART=yes qmake CONFIG+=debug CONFIG+=ccache HAVE_QCHART=yes
make -j$(nproc) make -j$(nproc)
- name: Run GUI tests on ubuntu # TODO: binaries are in a different location on macos
- name: Build and Run GUI tests
if: contains(matrix.os, 'ubuntu') if: contains(matrix.os, 'ubuntu')
run: | run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" export PATH="$(brew --prefix)/opt/ccache/libexec:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
pushd gui/test/cppchecklibrarydata pushd gui/test/cppchecklibrarydata
qmake CONFIG+=debug qmake CONFIG+=debug CONFIG+=ccache
make -j$(nproc) make -j$(nproc)
./test-cppchecklibrarydata ./test-cppchecklibrarydata
popd popd
pushd gui/test/filelist pushd gui/test/filelist
qmake CONFIG+=debug qmake CONFIG+=debug CONFIG+=ccache
make -j$(nproc) make -j$(nproc)
# TODO: requires X session # TODO: requires X session
#./test-filelist #./test-filelist
popd popd
pushd gui/test/projectfile pushd gui/test/projectfile
qmake CONFIG+=debug qmake CONFIG+=debug CONFIG+=ccache
make -j$(nproc) make -j$(nproc)
./test-projectfile ./test-projectfile
popd popd
pushd gui/test/translationhandler pushd gui/test/translationhandler
qmake CONFIG+=debug qmake CONFIG+=debug CONFIG+=ccache
make -j$(nproc) make -j$(nproc)
# TODO: requires X session # TODO: requires X session
#./test-translationhandler #./test-translationhandler
popd popd
pushd gui/test/xmlreportv2 pushd gui/test/xmlreportv2
qmake CONFIG+=debug qmake CONFIG+=debug CONFIG+=ccache
make -j$(nproc) make -j$(nproc)
# TODO: requires X session # TODO: requires X session
#./test-xmlreportv2 #./test-xmlreportv2
- name: Generate Qt help file on ubuntu - name: Generate Qt help file
if: contains(matrix.os, 'ubuntu')
run: | run: |
pushd gui/help pushd gui/help
qhelpgenerator online-help.qhcp -o online-help.qhc qhelpgenerator online-help.qhcp -o online-help.qhc
- name: Build triage on ubuntu - name: Build triage
if: contains(matrix.os, 'ubuntu')
run: | run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" export PATH="$(brew --prefix)/opt/ccache/libexec:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
pushd tools/triage pushd tools/triage
qmake CONFIG+=debug qmake CONFIG+=debug CONFIG+=ccache
make -j$(nproc) make -j$(nproc)
build_fuzz: build_fuzz: