Bump Qt and CI script versions, fix macOS support, and drop support for qmake #102
Workflow file for this run
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 | |
on: | |
push: | |
branches-ignore: | |
- "releases/**" | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
qt_version: [5.12.12, 5.15.2, 6.2.2] | |
platform: [ubuntu-20.04, windows-latest, macos-latest] | |
include: | |
- qt_version: 6.2.2 | |
additional_arguments: -D QT_DEFAULT_MAJOR_VERSION=6 | |
- platform: ubuntu-20.04 | |
make: make | |
CXXFLAGS: -Wall -Wextra -pedantic -Werror | |
MAKEFLAGS: -j2 | |
- platform: macos-latest | |
make: make | |
CXXFLAGS: -Wall -Wextra -pedantic -Werror -Wno-gnu-zero-variadic-macro-arguments # Ignore false-positive warning for qCWarning | |
MAKEFLAGS: -j3 | |
- platform: windows-latest | |
make: nmake | |
CXXFLAGS: /W4 /WX /MP | |
runs-on: ${{ matrix.platform }} | |
env: | |
CXXFLAGS: ${{ matrix.CXXFLAGS }} | |
MAKEFLAGS: ${{ matrix.MAKEFLAGS }} | |
steps: | |
- name: Clone repo | |
uses: actions/[email protected] | |
- name: Install Qt | |
uses: jurplel/[email protected] | |
with: | |
version: ${{ matrix.qt_version }} | |
- name: Build with CMake as static | |
run: | | |
cmake . -D QHOTKEY_EXAMPLES=ON -D CMAKE_OSX_ARCHITECTURES="x86_64" ${{ matrix.additional_arguments }} | |
cmake --build . | |
- name: Build with CMake as shared | |
run: | | |
cmake . -D BUILD_SHARED_LIBS=ON -D QHOTKEY_EXAMPLES=ON -D CMAKE_OSX_ARCHITECTURES="x86_64" ${{ matrix.additional_arguments }} | |
cmake --build . |