-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates for SketchUp 2024 #714
Changes from 11 commits
bfcf310
377c9d3
48d1f9d
50f155a
2751769
f0b8a25
598c17d
fff53cf
55cfab6
6473833
d4f56e7
ae7730b
b70a120
d86d19f
4ef58a9
7d30090
addfaf0
4e1dee8
f35dda7
5dea4d3
427d60d
03018ef
1157124
fbe0d12
dbaa0c4
6e95292
67dac8d
4ac00c2
1d8597a
ff6c20e
051b028
4cd5ac0
808ff08
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,19 +8,20 @@ on: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
pull_request: | ||
branches: [ master, develop ] | ||
types: [ opened, reopened, synchronize, ready_for_review ] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
BUILD_DOCUMENTATION: OFF | ||
BUILD_TESTING: ON | ||
BUILD_BENCHMARK: ON | ||
BUILD_PACKAGE: ON | ||
QT_VERSION: 6.6.3 | ||
QT_VERSION: 6.5.3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yikes. That's for sketchup using a different Qt then. How was it working before though? Is Qt a new sketchup dependency? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok I follow now. Sketchup was using Qt 5 until 2023.1 where it switched to Qt 6. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I don't really like having our Qt version tied to SketchUp's. That is the idea of eventually removing all the Qt stuff from the SketchUp Plug-in, the biggest thing to replace is the Inspector Dialog which is not that hard but it isn't trivial. |
||
|
||
jobs: | ||
build: | ||
# Note: as of 2021-01-29, this only works for push, not for pull request | ||
# if: "!(contains(github.event.head_commit.message, 'skip') && contains(github.event.head_commit.message, 'ci'))" | ||
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jmarrec what do you think about this? I can't remember when we would want to use 'skip' or 'ci' instead? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm the way I have it now marking as "Ready to Review" doesn't trigger the build, I'll work on that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok now it runs when marked ready for review There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So you can push a commit with "[skip ci]" in the commit message and the run won't be triggered. But this is now baked into github actions anyways; https://docs.github.com/en/actions/managing-workflow-runs/skipping-workflow-runs |
||
|
||
runs-on: ${{ matrix.os }} | ||
continue-on-error: true | ||
strategy: | ||
|
@@ -405,7 +406,7 @@ jobs: | |
cmake -E make_directory ./build | ||
|
||
if [ "$RUNNER_OS" == "macOS" ]; then | ||
QT_INSTALL_DIR="/Users/irvinemac/Qt/6.6.3/macos/" | ||
QT_INSTALL_DIR="/Users/irvinemac/Qt/$QT_VERSION/macos/" | ||
fi | ||
|
||
echo "$QT_INSTALL_DIR/bin" >> $GITHUB_PATH | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -477,6 +477,8 @@ if(WIN32) | |
# add_compile_definitions(BOOST_USE_WINDOWS_H) # Getting a confict with `typedef GUID UUID` from windows.h | ||
add_compile_definitions(BOOST_WINAPI_DEFINE_VERSION_MACROS) | ||
add_compile_definitions(WIN32_LEAN_AND_MEAN) # That excludes stuff that's not used too often, including the GUID stuff | ||
# TODO: remove when possible, see https://github.com/microsoft/cpprestsdk/issues/1768 | ||
add_compile_definitions(_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING) | ||
endif() | ||
|
||
# Check version of gcc | ||
|
@@ -508,9 +510,18 @@ if(UNIX) | |
endif() | ||
|
||
# Qt | ||
# e.g. QT_INSTALL_DIR = C:/Qt/6.6.3/msvc2019_64 | ||
# e.g. QT_INSTALL_DIR = C:/Qt/6.5.3/msvc2019_64 | ||
set(QT_INSTALL_DIR "" CACHE PATH "Path to Qt Install") | ||
set(QT_VERSION "6.6.3") | ||
set(QT_VERSION "6.5.3" CACHE STRING "Qt target version, defaults to 6.5.3") | ||
|
||
# For AboutBox, but also validates that the version is valid | ||
string(REGEX MATCH "^([0-9]+\\.[0-9]+)" | ||
QT_VERSION_MAJOR_MINOR ${QT_VERSION}) | ||
if(NOT QT_VERSION_MAJOR_MINOR) | ||
message(FATAL_ERROR "Failed to match QT_VERSION=${QT_VERSION}") | ||
endif() | ||
set(QT_DOC_LINK "https://doc.qt.io/qt-${QT_VERSION_MAJOR_MINOR}/qtmodules.html") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Allow passing QT_VERSION... default to 6.5.3 Make a link for the aboutbox |
||
|
||
|
||
# TODO: how to set OPENSSL_ROOT_DIR to a generator expression? | ||
set(OPENSSL_ROOT_DIR ${CONAN_OPENSSL_ROOT_RELEASE}) | ||
|
@@ -534,7 +545,7 @@ find_file(qweb_resources NAMES qtwebengine_resources.pak PATHS "${QT_INSTALL_DIR | |
find_file(qweb_resources_devtools NAMES qtwebengine_devtools_resources.pak PATHS "${QT_INSTALL_DIR}/resources/" "${QT_INSTALL_DIR}/lib/QtWebEngineCore.framework/Resources" NO_DEFAULT_PATH) | ||
find_file(qweb_resources_100 NAMES qtwebengine_resources_100p.pak PATHS "${QT_INSTALL_DIR}/resources/" "${QT_INSTALL_DIR}/lib/QtWebEngineCore.framework/Resources" NO_DEFAULT_PATH) | ||
find_file(qweb_resources_200 NAMES qtwebengine_resources_200p.pak PATHS "${QT_INSTALL_DIR}/resources/" "${QT_INSTALL_DIR}/lib/QtWebEngineCore.framework/Resources" NO_DEFAULT_PATH) | ||
find_file(qweb_resources_v8_context_snapshot NAMES v8_context_snapshot.bin PATHS "${QT_INSTALL_DIR}/resources/" "${QT_INSTALL_DIR}/lib/QtWebEngineCore.framework/Resources" NO_DEFAULT_PATH) | ||
#find_file(qweb_resources_v8_context_snapshot NAMES v8_context_snapshot.bin PATHS "${QT_INSTALL_DIR}/resources/" "${QT_INSTALL_DIR}/lib/QtWebEngineCore.framework/Resources" NO_DEFAULT_PATH) | ||
|
||
# QT_WEB_LIBS are linked by OS App and openstudio_lib but not by openstudio_modeleditor.so or openstudio_modeleditor | ||
list(APPEND QT_WEB_LIBS Qt6::WebEngineCore) | ||
|
@@ -608,7 +619,7 @@ if(WIN32) | |
endif() | ||
|
||
if(UNIX AND NOT APPLE) | ||
# Apparently libqxcb.so depends on libQt6OpenGL.so in Qt 6.6.3 (it depended on libGL on 5.15.0 but not OpenGL) | ||
# Apparently libqxcb.so depends on libQt6OpenGL.so in Qt 6.5.3 (it depended on libGL on 5.15.0 but not OpenGL) | ||
find_package(Qt6OpenGL ${QT_VERSION} REQUIRED PATHS ${QT_INSTALL_DIR} NO_DEFAULT_PATH) | ||
list(APPEND QT_LIBS Qt6::OpenGL) | ||
endif() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want to add this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They default types for pull_requests are [ opened, reopened, synchronize ]. I added ready_for_review in the case that a PR is draft and then you mark it ready for review without pushing a commit. The idea is if you want to push code to a branch but not kick off a bunch of CI builds you can mark the PR as draft. Then when you want CI to run you set as ready for review. To me that seems nicer than adding [skip ci] to each commit message but we could do that too.