fix(debian): add build dependency to pkg-config #73 #51
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
name: CI | |
on: | |
push: | |
branches: [ 'master' ] | |
pull_request: | |
branches: [ 'master' ] | |
schedule: | |
- cron: '30 12 * * 0' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
clang-format: | |
name: Formatting (clang-format) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run clang-format | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '13' | |
check-path: '.' | |
linux-qt: | |
name: Build (Linux/Qt) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install \ | |
qtbase5-dev \ | |
libqt5widgets5 \ | |
libqt5printsupport5 \ | |
qttools5-dev \ | |
qttools5-dev-tools \ | |
libpoppler-qt5-dev | |
- name: Build QTikZ | |
run: | | |
mkdir -p build-qt5-ubuntu && cd build-qt5-ubuntu | |
QT_SELECT=5 qmake -Wall -Wdeprecated ../qtikz.pro | |
QT_SELECT=5 make -j4 | |
linux-kde: | |
name: Build (Linux/KDE) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install \ | |
qtbase5-dev \ | |
libqt5widgets5 \ | |
libqt5printsupport5 \ | |
qttools5-dev \ | |
qttools5-dev-tools \ | |
libpoppler-qt5-dev | |
sudo apt-get -y install \ | |
extra-cmake-modules \ | |
kdoctools5 \ | |
libkf5doctools-dev \ | |
libkf5xmlgui-dev \ | |
libkf5texteditor-dev \ | |
libkf5parts-dev \ | |
libkf5iconthemes-dev | |
- name: Build KTikZ | |
run: | | |
cmake -Bbuild \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_CXX_FLAGS="-Wdeprecated" | |
cmake --build build | |
macos: | |
name: Build (macOS/Qt) | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
# https://github.com/TeXworks/texworks/blob/c485a6c151c22cc628b02e382fa534eb7591878d/.github/workflows/ci.yml#L162 | |
cd /usr/local/bin && rm -f 2to3* idle* pydoc* python* | |
# brew update > /tmp/brew_update.log || { echo "::error::Updating homebrew failed"; cat /tmp/brew_update.log; exit 1; } | |
brew install poppler-qt5 qt@5 | |
brew link --force poppler-qt5 | |
brew link --force qt@5 | |
- name: Build QTikZ | |
run: | | |
export PATH="/usr/local/opt/qt@5/bin:$PATH" | |
mkdir -p build-qt5-macos && cd build-qt5-macos | |
QT_SELECT=5 qmake ../qtikz.pro | |
QT_SELECT=5 make -j4 | |
# vim: set ts=2 sw=2 et: |