Skip to content

Commit

Permalink
use native qt packages for coverage run
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanilov committed Jan 20, 2024
1 parent 180d5aa commit 4360d48
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,47 +17,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
qt-version: ['6.5.3']
build-type: [Debug]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install aqt
run: |
pip3 install aqtinstall
- name: install Qt
run: |
O_DIR=$HOME/Qt
echo "O_DIR=$O_DIR" >>$GITHUB_ENV
aqt install-qt linux desktop ${{ matrix.qt-version }} -m qtmultimedia -O $O_DIR
- name: Qt dir
run: |
Qt6_QMAKE=`find $O_DIR -name "qmake6*"`
Qt6_BINDIR=`dirname $Qt6_QMAKE`
Qt6_DIR=`dirname $Qt6_BINDIR`
QT_PLUGIN_PATH=$Qt6_DIR/plugins
QML2_IMPORT_PATH=$Qt6_DIR/qml
echo "Qt6_DIR=$Qt6_DIR" >>$GITHUB_ENV
echo "Qt6_BINDIR=$Qt6_BINDIR" >>$GITHUB_ENV
echo "QT_PLUGIN_PATH=$QT_PLUGIN_PATH" >>$GITHUB_ENV
echo "QML2_IMPORT_PATH=$QML2_IMPORT_PATH" >>$GITHUB_ENV
- name: build dependencies
run: |
sudo apt-get -qq update
sudo apt-get install --assume-yes gcovr
sudo apt-get install --assume-yes libgl1-mesa-dev
sudo apt-get install --assume-yes libpulse0
sudo apt-get install --assume-yes libqt5gui5
sudo apt-get install --assume-yes libxcb-cursor0
sudo apt-get install --assume-yes libgl-dev
sudo apt-get install --assume-yes pulseaudio
sudo apt-get install --assume-yes qt6-base-dev
sudo apt-get install --assume-yes qt6-l10n-tools
sudo apt-get install --assume-yes qt6-multimedia-dev
sudo apt-get install --assume-yes qt6-tools-dev
sudo apt-get install --assume-yes qt6-tools-dev-tools
sudo apt-get install --assume-yes xvfb
- name: configure
run: |
BUILD_DIR=$HOME/build
echo "BUILD_DIR=$BUILD_DIR" >>$GITHUB_ENV
cmake -DWITH_COVERAGE=ON -DCMAKE_PREFIX_PATH=$Qt6_DIR -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -B $BUILD_DIR
cmake -DWITH_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug -B $BUILD_DIR
- name: build
run: |
cmake --build $BUILD_DIR --target all
Expand Down

0 comments on commit 4360d48

Please sign in to comment.