removed mingw; add platform delegate step
This commit is contained in:
parent
553db796b7
commit
74118fd425
|
@ -5,16 +5,6 @@ on:
|
||||||
branches: [cmake]
|
branches: [cmake]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
qtversion:
|
|
||||||
description: "Select either Qt5 or Qt6"
|
|
||||||
required: false
|
|
||||||
default: "Qt5"
|
|
||||||
type: choice
|
|
||||||
options:
|
|
||||||
- Qt5
|
|
||||||
- Qt6
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -25,7 +15,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- {
|
- {
|
||||||
name: "Windows Latest MSVC",
|
name: "Windows Latest MSVC Qt5",
|
||||||
os: windows-latest,
|
os: windows-latest,
|
||||||
artifact: "windows_msvc.7z",
|
artifact: "windows_msvc.7z",
|
||||||
build_type: "Release",
|
build_type: "Release",
|
||||||
|
@ -37,7 +27,7 @@ jobs:
|
||||||
qtcmakedir: "../Qt/5.15.2/msvc2019_64/lib/cmake/Qt5", # TODO find better solution
|
qtcmakedir: "../Qt/5.15.2/msvc2019_64/lib/cmake/Qt5", # TODO find better solution
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Windows 2019 MSVC",
|
name: "Windows 2019 MSVC Qt5",
|
||||||
os: windows-2019,
|
os: windows-2019,
|
||||||
artifact: "windows_msvc.7z",
|
artifact: "windows_msvc.7z",
|
||||||
build_type: "Release",
|
build_type: "Release",
|
||||||
|
@ -49,18 +39,7 @@ jobs:
|
||||||
qtcmakedir: "../Qt/5.15.2/msvc2019_64/lib/cmake/Qt5", # TODO find better solution
|
qtcmakedir: "../Qt/5.15.2/msvc2019_64/lib/cmake/Qt5", # TODO find better solution
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Windows Latest MinGW",
|
name: "Ubuntu_Latest_GCC Qt5",
|
||||||
os: windows-latest,
|
|
||||||
artifact: "windows_mingw.7z",
|
|
||||||
build_type: "Release",
|
|
||||||
cc: "gcc",
|
|
||||||
cxx: "g++",
|
|
||||||
archiver: "7z a",
|
|
||||||
generators: "Ninja",
|
|
||||||
qtcmakedir: "../Qt/5.15.2/mingw81_64/lib/cmake/Qt5", # TODO find better solution
|
|
||||||
}
|
|
||||||
- {
|
|
||||||
name: "Ubuntu_Latest_GCC",
|
|
||||||
os: ubuntu-latest,
|
os: ubuntu-latest,
|
||||||
artifact: "ubuntu_gcc.7z",
|
artifact: "ubuntu_gcc.7z",
|
||||||
build_type: "Release",
|
build_type: "Release",
|
||||||
|
@ -71,7 +50,7 @@ jobs:
|
||||||
qtcmakedir: "../Qt/5.15.2/gcc_64/lib/cmake/Qt5", # TODO find better solution
|
qtcmakedir: "../Qt/5.15.2/gcc_64/lib/cmake/Qt5", # TODO find better solution
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu_GCC_9",
|
name: "Ubuntu_GCC_9 Qt5",
|
||||||
os: ubuntu-latest,
|
os: ubuntu-latest,
|
||||||
artifact: "ubuntu_gcc9.7z",
|
artifact: "ubuntu_gcc9.7z",
|
||||||
build_type: "Release",
|
build_type: "Release",
|
||||||
|
@ -82,7 +61,7 @@ jobs:
|
||||||
qtcmakedir: "../Qt/5.15.2/gcc_64/lib/cmake/Qt5", # TODO find better solution
|
qtcmakedir: "../Qt/5.15.2/gcc_64/lib/cmake/Qt5", # TODO find better solution
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "macOS Latest Clang",
|
name: "macOS Latest Clang Qt5",
|
||||||
os: macos-latest,
|
os: macos-latest,
|
||||||
artifact: "macos_clang.7z",
|
artifact: "macos_clang.7z",
|
||||||
build_type: "Release",
|
build_type: "Release",
|
||||||
|
@ -160,20 +139,43 @@ jobs:
|
||||||
cmake --version
|
cmake --version
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Version Delegate Qt5 MSVC
|
||||||
|
if: "endsWith(matrix.config.name, 'Qt5') && contains(matrix.config.name, 'MSVC')"
|
||||||
|
id: version-delegate
|
||||||
|
run: |
|
||||||
|
echo "Qt_VERSION=5.15.2" >> $GITHUB_OUTPUT
|
||||||
|
echo "Qt_DIR_KEY=Qt5_DIR" >> $GITHUB_OUTPUT
|
||||||
|
echo "Qt_DIR_VALUE=../Qt/5.15.2/msvc2019_64/lib/cmake/Qt5" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Version Delegate Qt5 GCC
|
||||||
|
if: "endsWith(matrix.config.name, 'Qt5') && contains(matrix.config.name, 'GCC')"
|
||||||
|
id: version-delegate
|
||||||
|
run: |
|
||||||
|
echo "Qt_VERSION=5.15.2" >> $GITHUB_OUTPUT
|
||||||
|
echo "Qt_DIR_KEY=Qt5_DIR" >> $GITHUB_OUTPUT
|
||||||
|
echo "Qt_DIR_VALUE=../Qt/5.15.2/gcc_64/lib/cmake/Qt5" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Version Delegate Qt5 Clang
|
||||||
|
if: "endsWith(matrix.config.name, 'Qt5') && contains(matrix.config.name, 'Clang')"
|
||||||
|
id: version-delegate
|
||||||
|
run: |
|
||||||
|
echo "Qt_VERSION=5.15.2" >> $GITHUB_OUTPUT
|
||||||
|
echo "Qt_DIR_KEY=Qt5_DIR" >> $GITHUB_OUTPUT
|
||||||
|
echo "Qt_DIR_VALUE=../Qt/5.15.2/gcc_64/lib/cmake/Qt5" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache Qt
|
- name: Cache Qt
|
||||||
id: cache-qt-5-15
|
id: cache-qt-5-15
|
||||||
uses: actions/cache@v1 # not v2!
|
uses: actions/cache@v1 # not v2!
|
||||||
with:
|
with:
|
||||||
path: ../Qt/5.15.2 # TODO use absolute paths
|
path: ../Qt/5.15.2
|
||||||
key: ${{ runner.os }}-QtCache-Qt5
|
key: ${{ runner.os }}-QtCache-Qt5
|
||||||
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: "5.15.2"
|
version: "5.15.2"
|
||||||
#host: "windows"
|
|
||||||
target: "desktop"
|
target: "desktop"
|
||||||
#arch: "win64_msvc2019_64"
|
|
||||||
install-deps: "true"
|
install-deps: "true"
|
||||||
modules: "qtwebengine"
|
modules: "qtwebengine"
|
||||||
cached: ${{ steps.cache-qt-5-15.outputs.cache-hit }}
|
cached: ${{ steps.cache-qt-5-15.outputs.cache-hit }}
|
||||||
|
@ -193,7 +195,7 @@ jobs:
|
||||||
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
||||||
-G "${{ matrix.config.generators }}" \
|
-G "${{ matrix.config.generators }}" \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=instdir \
|
-DCMAKE_INSTALL_PREFIX:PATH=instdir \
|
||||||
-DQt5_DIR:PATH="${{ matrix.config.qtcmakedir }}"
|
-D${{ steps.version-delegate.outputs.Qt_DIR_KEY }}:PATH="${{ steps.version-delegate.outputs.Qt_DIR_VALUE }}"
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake --build . --config ${{ matrix.config.build_type }}
|
run: cmake --build . --config ${{ matrix.config.build_type }}
|
||||||
|
|
|
@ -49,7 +49,7 @@ else()
|
||||||
set(Qt_VERSION_PATCH ${Qt5_VERSION_PATCH})
|
set(Qt_VERSION_PATCH ${Qt5_VERSION_PATCH})
|
||||||
elseif(NOT "${Qt6_DIR}" STREQUAL "")
|
elseif(NOT "${Qt6_DIR}" STREQUAL "")
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui OpenGL Quick QuickWidgets Svg Widgets)
|
find_package(Qt6 REQUIRED COMPONENTS Core Gui OpenGL Quick QuickWidgets Svg Widgets)
|
||||||
find_package(Qt5 OPTIONAL_COMPONENTS QuickWidgets WebEngineCore WebEngineQuick)
|
find_package(Qt6 OPTIONAL_COMPONENTS QuickWidgets WebEngineCore WebEngineQuick)
|
||||||
set(Qt Qt${Qt6_VERSION_MAJOR})
|
set(Qt Qt${Qt6_VERSION_MAJOR})
|
||||||
set(Qt_VERSION ${Qt6_VERSION})
|
set(Qt_VERSION ${Qt6_VERSION})
|
||||||
set(Qt_VERSION_MAJOR ${Qt6_VERSION_MAJOR})
|
set(Qt_VERSION_MAJOR ${Qt6_VERSION_MAJOR})
|
||||||
|
@ -80,8 +80,12 @@ add_subdirectory(inputcontext)
|
||||||
add_subdirectory(qmlexport)
|
add_subdirectory(qmlexport)
|
||||||
add_subdirectory(tools)
|
add_subdirectory(tools)
|
||||||
add_subdirectory(support)
|
add_subdirectory(support)
|
||||||
|
if(BUILD_EXAMPLES)
|
||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
|
endif()
|
||||||
|
if(BUILD_PLAYGROUND)
|
||||||
add_subdirectory(playground)
|
add_subdirectory(playground)
|
||||||
|
endif()
|
||||||
|
|
||||||
#TODO add doxygen support
|
#TODO add doxygen support
|
||||||
#OTHER_FILES =
|
#OTHER_FILES =
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
[](https://github.com/vrcomputing/qskinny/actions/workflows/cmake.yml)
|
||||||
|
|
||||||
The (Q)Skinny library is a framework built on top of the Qt scene graph
|
The (Q)Skinny library is a framework built on top of the Qt scene graph
|
||||||
and very few core classes from Qt/Quick. It offers a set of lightweight controls,
|
and very few core classes from Qt/Quick. It offers a set of lightweight controls,
|
||||||
that can be used from C++ and/or QML.
|
that can be used from C++ and/or QML.
|
||||||
|
|
|
@ -50,6 +50,8 @@ set(OBJECTS_DIR obj)
|
||||||
set(RCC_DIR rcc)
|
set(RCC_DIR rcc)
|
||||||
|
|
||||||
option(BUILD_QSKDLL "build qskinny as shared library" ON)
|
option(BUILD_QSKDLL "build qskinny as shared library" ON)
|
||||||
|
option(BUILD_EXAMPLES "build qskinny examples" ON)
|
||||||
|
option(BUILD_PLAYGROUND "build qskinny playground" ON)
|
||||||
option(ENABLE_PINYIN "enable romanization system for standard mandarin chinese" OFF) # TODO try find pkg-config
|
option(ENABLE_PINYIN "enable romanization system for standard mandarin chinese" OFF) # TODO try find pkg-config
|
||||||
option(ENABLE_HUNSPELL "enable spell checker" OFF) # TODO try find pkg-config
|
option(ENABLE_HUNSPELL "enable spell checker" OFF) # TODO try find pkg-config
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue