Work on CI Build - edited Qt ver #31
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: Build SocNetV (CI) with GitHub Actions 🚀 | |
# run-name: ${{ github.actor }} testing latest SocNetV build with | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-2019] | |
qt-version: ['6.2.4', '6.4.3', '6.5.3', '6.6.3'] | |
# exclude: | |
# - os: ubuntu-latest | |
# qt-version: '6.5.3' | |
# - os: windows-2019 | |
# qt-version: '6.5.3' | |
# - os: macos-latest | |
# qt-version: '6.5.3' | |
# include: | |
# - os: ubuntu-latest | |
# qt-version: '6.6.3' | |
# - os: windows-2019 | |
# qt-version: '6.6.3' | |
# - os: macos-latest | |
# qt-version: '6.6.3' | |
# # Snapcraft | |
# - os: ubuntu-22.04 | |
# qt-version: '6.5.3' | |
runs-on: ${{ matrix.os }} | |
steps: | |
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event, by actor ${{ github.actor }}." | |
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | |
- run: echo "🖥️ The workflow is now ready to test your code on the runner." | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
# | |
# Install Qt | |
# | |
- if: contains( matrix.os, 'windows') | |
name: Prepare for Windows | |
run: | | |
pip install aqtinstall | |
aqt list-qt linux desktop | |
- if: contains( matrix.os, 'ubuntu') | |
name: Install dependencies | |
run: | | |
pip install aqtinstall | |
aqt list-qt linux desktop | |
sudo apt install build-essential libssl-dev \ | |
cmake ninja-build \ | |
libssl-dev libxkbcommon-x11-dev libxcb-cursor-dev zlib1g-dev | |
- if: contains( matrix.os, 'macos') | |
name: Install for macOS | |
run: | | |
pip install aqtinstall | |
aqt list-qt linux desktop | |
# | |
# Install Qt | |
# | |
- if: contains( matrix.os, 'windows') && matrix.qt-version == '6.2.4' | |
name: Install Qt Qt 6.2.4 on Windows | |
uses: jurplel/install-qt-action@v4 | |
with: | |
aqtversion: '==2.0.0' | |
version: ${{ matrix.qt-version }} | |
arch: win64_mingw | |
modules: qtwebsockets | |
cache: true | |
- if: contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' ) && matrix.qt-version != '6.2.4' | |
name: Install Qt 6.3+ on Windows | |
uses: jurplel/install-qt-action@v4 | |
with: | |
aqtversion: '==2.1.*' | |
version: ${{ matrix.qt-version }} | |
arch: win64_mingw | |
modules: qtwebsockets core5compat xml network widgets printsupport charts svg | |
cache: true | |
- if: contains( matrix.os, 'ubuntu') && startsWith( matrix.qt-version, '6.' ) | |
name: Install Qt 6 on Linux | |
uses: jurplel/install-qt-action@v4 | |
with: | |
aqtversion: '==2.0.0' | |
version: ${{ matrix.qt-version }} | |
modules: qtwebsockets core5compat xml network widgets printsupport charts svg | |
cache: true | |
- if: contains( matrix.os, 'macos') && startsWith( matrix.qt-version, '6.' ) | |
name: Install Qt 6 on macOS | |
uses: jurplel/install-qt-action@v4 | |
with: | |
aqtversion: '==2.0.0' | |
version: ${{ matrix.qt-version }} | |
modules: qtwebsockets core5compat xml network widgets printsupport charts svg | |
cache: true | |
# | |
# Build SocNetV | |
# | |
- if: contains( matrix.os, 'ubuntu-latest') | |
name: Do Linux tests | |
run: | | |
echo "openssl version:" | |
echo `openssl version` | |
echo "Check output of 'which qmake6':" | |
which qmake6 | |
echo "Check qmake6 -v:" | |
qmake6 -v | |
qmake6 CONFIG+=debug && make -s -j 8 | |
echo "Building finished! " | |
echo "Files in current directory: " | |
find . | |
# qmake workaround: https://bugreports.qt.io/browse/QTBUG-117225?focusedId=754625&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-754625 | |
# See https://github.com/pbek/QOwnNotes/issues/3018 | |
- if: contains( matrix.os, 'macos') | |
name: Do macOS tests | |
run: | | |
qmake CONFIG+=debug socnetv.pro | |
mingw32-make | |
- if: contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' ) && matrix.qt-version != '6.2.4' | |
name: Do Qt 6.3+ Windows tests | |
run: | | |
qmake CONFIG+=debug socnetv.pro | |
mingw32-make | |
make | |
dir | |
- run: echo "🍏 This job's status is ${{ job.status }}." |