CI fixed ( kudos to Rick )
This commit is contained in:
parent
cf3cb40a0b
commit
b21b42a8be
|
@ -51,12 +51,12 @@ jobs:
|
||||||
generators: "Visual Studio 17 2022",
|
generators: "Visual Studio 17 2022",
|
||||||
cmake:
|
cmake:
|
||||||
{
|
{
|
||||||
qtversion: "6.2.4",
|
qtversion: "6.5.0",
|
||||||
qtdirkey: "Qt6_DIR",
|
qtdirkey: "Qt6_DIR",
|
||||||
qtdirvalue: "../Qt/6.2.4/msvc2019_64/lib/cmake/Qt6",
|
qtdirvalue: "../Qt/6.5.0/msvc2019_64/lib/cmake/Qt6",
|
||||||
qtprefixpath: "../Qt/6.2.4/msvc2019_64",
|
qtprefixpath: "../Qt/6.5.0/msvc2019_64",
|
||||||
},
|
},
|
||||||
screenshot_filename: "windows-latest-msvc-qt-6-2-4.jpg",
|
screenshot_filename: "windows-latest-msvc-qt-6.5.0.jpg",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Windows 2019 MSVC Qt5",
|
name: "Windows 2019 MSVC Qt5",
|
||||||
|
@ -89,12 +89,12 @@ jobs:
|
||||||
generators: "Visual Studio 16 2019",
|
generators: "Visual Studio 16 2019",
|
||||||
cmake:
|
cmake:
|
||||||
{
|
{
|
||||||
qtversion: "6.2.4",
|
qtversion: "6.5.0",
|
||||||
qtdirkey: "Qt6_DIR",
|
qtdirkey: "Qt6_DIR",
|
||||||
qtdirvalue: "../Qt/6.2.4/msvc2019_64/lib/cmake/Qt6",
|
qtdirvalue: "../Qt/6.5.0/msvc2019_64/lib/cmake/Qt6",
|
||||||
qtprefixpath: "../Qt/6.2.4/msvc2019_64",
|
qtprefixpath: "../Qt/6.5.0/msvc2019_64",
|
||||||
},
|
},
|
||||||
screenshot_filename: "windows-2019-msvc-qt-6-2-4.jpg",
|
screenshot_filename: "windows-2019-msvc-qt-6.5.0.jpg",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Latest GCC Qt5",
|
name: "Ubuntu Latest GCC Qt5",
|
||||||
|
@ -127,12 +127,12 @@ jobs:
|
||||||
env: { DISPLAY: ":1" },
|
env: { DISPLAY: ":1" },
|
||||||
cmake:
|
cmake:
|
||||||
{
|
{
|
||||||
qtversion: "6.2.4",
|
qtversion: "6.5.0",
|
||||||
qtdirkey: "Qt6_DIR",
|
qtdirkey: "Qt6_DIR",
|
||||||
qtdirvalue: "../Qt/6.2.4/gcc_64/lib/cmake/Qt6",
|
qtdirvalue: "../Qt/6.5.0/gcc_64/lib/cmake/Qt6",
|
||||||
qtprefixpath: "../Qt/6.2.4/gcc_64",
|
qtprefixpath: "../Qt/6.5.0/gcc_64",
|
||||||
},
|
},
|
||||||
screenshot_filename: "ubuntu-latest-gcc-qt-6-2-4.jpg",
|
screenshot_filename: "ubuntu-latest-gcc-qt-6.5.0.jpg",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu GCC 9 Qt5",
|
name: "Ubuntu GCC 9 Qt5",
|
||||||
|
@ -165,12 +165,12 @@ jobs:
|
||||||
env: { DISPLAY: ":1" },
|
env: { DISPLAY: ":1" },
|
||||||
cmake:
|
cmake:
|
||||||
{
|
{
|
||||||
qtversion: "6.2.4",
|
qtversion: "6.5.0",
|
||||||
qtdirkey: "Qt6_DIR",
|
qtdirkey: "Qt6_DIR",
|
||||||
qtdirvalue: "../Qt/6.2.4/gcc_64/lib/cmake/Qt6",
|
qtdirvalue: "../Qt/6.5.0/gcc_64/lib/cmake/Qt6",
|
||||||
qtprefixpath: "../Qt/6.2.4/gcc_64",
|
qtprefixpath: "../Qt/6.5.0/gcc_64",
|
||||||
},
|
},
|
||||||
screenshot_filename: "ubuntu-latest-gcc-9-qt-6-2-4.jpg",
|
screenshot_filename: "ubuntu-latest-gcc-9-qt-6.5.0.jpg",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "macOS Latest Clang Qt5",
|
name: "macOS Latest Clang Qt5",
|
||||||
|
@ -201,12 +201,12 @@ jobs:
|
||||||
generators: "Ninja",
|
generators: "Ninja",
|
||||||
cmake:
|
cmake:
|
||||||
{
|
{
|
||||||
qtversion: "6.2.4",
|
qtversion: "6.5.0",
|
||||||
qtdirkey: "Qt6_DIR",
|
qtdirkey: "Qt6_DIR",
|
||||||
qtdirvalue: "../Qt/6.2.4/clang_64/lib/cmake/Qt6",
|
qtdirvalue: "../Qt/6.5.0/clang_64/lib/cmake/Qt6",
|
||||||
qtprefixpath: "../Qt/6.2.4/clang_64",
|
qtprefixpath: "../Qt/6.5.0/clang_64",
|
||||||
},
|
},
|
||||||
screenshot_filename: "macos-latest-clang-qt-6-2-4.jpg",
|
screenshot_filename: "macos-latest-clang-qt-6.5.0.jpg",
|
||||||
}
|
}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -281,8 +281,12 @@ jobs:
|
||||||
cmake --version
|
cmake --version
|
||||||
|
|
||||||
- name: Install needed xkbcommon symlink
|
- name: Install needed xkbcommon symlink
|
||||||
if: startsWith(matrix.config.name, 'Ubuntu') && endsWith(matrix.config.name, 'Qt6')
|
if: startsWith(matrix.config.name, 'Ubuntu')
|
||||||
run: sudo apt-get install libxkbcommon-dev -y
|
run: |
|
||||||
|
sudo apt-get install libxkbcommon-dev -y
|
||||||
|
sudo apt-get install libxkbcommon-x11-0 -y
|
||||||
|
sudo apt-get install libxcb-cursor-dev -y
|
||||||
|
sudo apt-get install x11-xserver-utils -y
|
||||||
|
|
||||||
- name: Install hunspell for Ubuntu
|
- name: Install hunspell for Ubuntu
|
||||||
if: false && startsWith(matrix.config.name, 'Ubuntu')
|
if: false && startsWith(matrix.config.name, 'Ubuntu')
|
||||||
|
@ -299,21 +303,21 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y imagemagick
|
sudo apt-get install -y imagemagick
|
||||||
|
|
||||||
- name: Cache Qt5
|
#- name: Cache Qt5
|
||||||
if: endsWith(matrix.config.name, 'Qt5')
|
# if: endsWith(matrix.config.name, 'Qt5')
|
||||||
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
|
# path: ../Qt/5.15.2
|
||||||
key: ${{ runner.os }}-QtCache-Qt5
|
# key: ${{ runner.os }}-QtCache-Qt5
|
||||||
|
#
|
||||||
- name: Cache Qt6
|
#- name: Cache Qt6
|
||||||
if: endsWith(matrix.config.name, 'Qt6')
|
# if: endsWith(matrix.config.name, 'Qt6')
|
||||||
id: cache-qt-6-2
|
# id: cache-qt-6-2
|
||||||
uses: actions/cache@v1 # not v2!
|
# uses: actions/cache@v1 # not v2!
|
||||||
with:
|
# with:
|
||||||
path: ../Qt/6.2.4
|
# path: ../Qt/6.5.0
|
||||||
key: ${{ runner.os }}-QtCache-Qt6
|
# key: ${{ runner.os }}-QtCache-Qt6
|
||||||
|
|
||||||
- name: Install Qt5
|
- name: Install Qt5
|
||||||
if: endsWith(matrix.config.name, 'Qt5')
|
if: endsWith(matrix.config.name, 'Qt5')
|
||||||
|
@ -333,7 +337,7 @@ jobs:
|
||||||
if: endsWith(matrix.config.name, 'Qt6')
|
if: endsWith(matrix.config.name, 'Qt6')
|
||||||
uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: "6.2.4"
|
version: "6.5.0"
|
||||||
target: "desktop"
|
target: "desktop"
|
||||||
install-deps: "true"
|
install-deps: "true"
|
||||||
modules: "qtwebengine"
|
modules: "qtwebengine"
|
||||||
|
@ -371,35 +375,45 @@ jobs:
|
||||||
|
|
||||||
- name: Smoke test ( QSkinny ) on MacOS
|
- name: Smoke test ( QSkinny ) on MacOS
|
||||||
if: startsWith(matrix.config.name, 'macOS')
|
if: startsWith(matrix.config.name, 'macOS')
|
||||||
|
env:
|
||||||
|
QT_DEBUG_PLUGINS: "1"
|
||||||
run: |
|
run: |
|
||||||
echo "starting iotdashboard"
|
echo "starting iotdashboard"
|
||||||
DYLD_LIBRARY_PATH=./qskinny_install/lib:./qskinny_install/plugins/skins ./qskinny_build/examples/iotdashboard/iotdashboard.app/Contents/MacOS/iotdashboard -qwindowgeometry 1024x600+75+100 &
|
DYLD_LIBRARY_PATH=./qskinny_install/lib:./qskinny_install/plugins/skins ./qskinny_build/examples/bin/iotdashboard.app/Contents/MacOS/iotdashboard -qwindowgeometry 1024x600+75+100 --screenshot ${{ matrix.config.screenshot_filename }} &
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
|
# TODO remove 'qskinny_build\skins\material3\Release' when skin install is fixed
|
||||||
- name: Smoke Test ( QSkinny ) on Windows
|
- name: Smoke Test ( QSkinny ) on Windows
|
||||||
if: startsWith(matrix.config.name, 'Windows')
|
if: startsWith(matrix.config.name, 'Windows')
|
||||||
|
env:
|
||||||
|
QT_DEBUG_PLUGINS: "1"
|
||||||
run: |
|
run: |
|
||||||
$Env:PATH += ";qskinny_install/lib"
|
$env:Path += ";./qskinny_install/bin;./qskinny_install/lib;./qskinny_install/plugins/skins;./qskinny_build/skins/material3/Release;./qskinny_build/skins/squiek/Release"
|
||||||
$Env:PATH += ";qskinny_install/plugins/skins"
|
|
||||||
echo "starting iotdashboard"
|
echo "starting iotdashboard"
|
||||||
Start-Process qskinny_build\examples\iotdashboard\Release\iotdashboard.exe -ArgumentList "-qwindowgeometry 1024x600+0+0"
|
Start-Process qskinny_build\examples\bin\Release\iotdashboard.exe -ArgumentList "-qwindowgeometry 1024x600+0+0 --screenshot ${{ matrix.config.screenshot_filename }}"
|
||||||
Start-Sleep -s 10
|
Start-Sleep -Seconds 10
|
||||||
|
|
||||||
- name: Smoke test ( QSkinny ) on Ubuntu
|
- name: Smoke test ( QSkinny ) on Ubuntu
|
||||||
if: startsWith(matrix.config.name, 'Ubuntu')
|
if: startsWith(matrix.config.name, 'Ubuntu')
|
||||||
env:
|
env:
|
||||||
DISPLAY: ":1"
|
DISPLAY: ":1"
|
||||||
|
QT_DEBUG_PLUGINS: "1"
|
||||||
run: |
|
run: |
|
||||||
echo starting Xvfb
|
echo starting Xvfb
|
||||||
Xvfb :1 &
|
Xvfb :1 &
|
||||||
sleep 10
|
sleep 10
|
||||||
echo starting iotdashboard
|
echo starting iotdashboard
|
||||||
./qskinny_build/examples/iotdashboard/iotdashboard &
|
./qskinny_build/examples/bin/iotdashboard --screenshot ${{ matrix.config.screenshot_filename }} &
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
- uses: OrbitalOwen/desktop-screenshot-action@0.1
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
file-name: ${{ matrix.config.screenshot_filename }}
|
name: ${{ matrix.config.screenshot_filename }}
|
||||||
|
path: ${{ matrix.config.screenshot_filename }}
|
||||||
|
|
||||||
|
#- uses: OrbitalOwen/desktop-screenshot-action@0.1
|
||||||
|
# with:
|
||||||
|
# file-name: ${{ matrix.config.screenshot_filename }}
|
||||||
|
|
||||||
- name: Smoke Test Cleanup ( QSkinny ) on Windows
|
- name: Smoke Test Cleanup ( QSkinny ) on Windows
|
||||||
if: startsWith(matrix.config.name, 'Windows')
|
if: startsWith(matrix.config.name, 'Windows')
|
||||||
|
@ -417,22 +431,22 @@ jobs:
|
||||||
killall iotdashboard
|
killall iotdashboard
|
||||||
killall Xvfb
|
killall Xvfb
|
||||||
|
|
||||||
- name: Configure ( CMake Integration Test )
|
#- name: Configure ( CMake Integration Test )
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
mkdir qskinny_build_test
|
# mkdir qskinny_build_test
|
||||||
cmake \
|
# cmake \
|
||||||
-S qskinny_source/examples/iotdashboard_smoketest \
|
# -S qskinny_source/examples/iotdashboard_smoketest \
|
||||||
-B qskinny_build_test \
|
# -B qskinny_build_test \
|
||||||
-G "${{ matrix.config.generators }}" \
|
# -G "${{ matrix.config.generators }}" \
|
||||||
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
# -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
||||||
-DCMAKE_PREFIX_PATH:PATH="${{ matrix.config.cmake.qtprefixpath }}" \
|
# -DCMAKE_PREFIX_PATH:PATH="${{ matrix.config.cmake.qtprefixpath }}" \
|
||||||
-D${{ matrix.config.cmake.qtdirkey }}:PATH="${{ matrix.config.cmake.qtdirvalue }}" \
|
# -D${{ matrix.config.cmake.qtdirkey }}:PATH="${{ matrix.config.cmake.qtdirvalue }}" \
|
||||||
-DQSkinny_DIR:PATH=$GITHUB_WORKSPACE/qskinny_install/lib/cmake/QSkinny
|
# -DQSkinny_DIR:PATH=$GITHUB_WORKSPACE/qskinny_install/lib/cmake/QSkinny
|
||||||
|
#
|
||||||
- name: Build ( CMake Integration Test )
|
#- name: Build ( CMake Integration Test )
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: cmake --build qskinny_build_test --config ${{ matrix.config.build_type }}
|
# run: cmake --build qskinny_build_test --config ${{ matrix.config.build_type }}
|
||||||
|
|
||||||
# - name: Pack
|
# - name: Pack
|
||||||
# shell: bash
|
# shell: bash
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <QskObjectCounter.h>
|
#include <QskObjectCounter.h>
|
||||||
|
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
|
#include <QTimer>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
@ -86,6 +87,17 @@ int main( int argc, char* argv[] )
|
||||||
MainWindow window;
|
MainWindow window;
|
||||||
window.show();
|
window.show();
|
||||||
|
|
||||||
|
for( int i = 1; i < argc; i++ )
|
||||||
|
{
|
||||||
|
if( argv[i] == QStringLiteral("--screenshot") && i + 1 < argc )
|
||||||
|
{
|
||||||
|
QTimer::singleShot( 500, &window, [&app, &window, filename = QString(argv[i + 1])]()
|
||||||
|
{ auto image = window.grabWindow(); image.save(filename); } );
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,9 +33,11 @@ if(BUILD_SVG2QVG_STANDALONE)
|
||||||
|
|
||||||
target_compile_definitions(${target} PRIVATE QSK_STANDALONE)
|
target_compile_definitions(${target} PRIVATE QSK_STANDALONE)
|
||||||
target_link_libraries(${target} PRIVATE Qt::Gui Qt::GuiPrivate)
|
target_link_libraries(${target} PRIVATE Qt::Gui Qt::GuiPrivate)
|
||||||
|
else()
|
||||||
|
target_link_libraries(${target} PRIVATE qskinny)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(${target} PRIVATE qskinny Qt::Svg)
|
target_link_libraries(${target} PRIVATE Qt::Svg)
|
||||||
|
|
||||||
set_target_properties(${target} PROPERTIES FOLDER tools)
|
set_target_properties(${target} PROPERTIES FOLDER tools)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue