-
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 5 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 |
---|---|---|
|
@@ -15,12 +15,12 @@ env: | |
BUILD_TESTING: ON | ||
BUILD_BENCHMARK: ON | ||
BUILD_PACKAGE: ON | ||
QT_VERSION: 6.6.3 | ||
QT_VERSION: 6.5.3 | ||
|
||
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 +405,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/6.5.3/macos/" | ||
jmarrec marked this conversation as resolved.
Show resolved
Hide resolved
|
||
fi | ||
|
||
echo "$QT_INSTALL_DIR/bin" >> $GITHUB_PATH | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,12 +51,12 @@ module WinAPI | |
qt_dll_path = File.expand_path(File.join(File.dirname(__FILE__), '../bin/')) | ||
|
||
# if install path fails, try developer paths | ||
if !File.exists?(File.join(qt_dll_path, 'Qt5Core.dll')) | ||
if !File.exist?(File.join(qt_dll_path, 'Qt5Core.dll')) | ||
release_dll_path = File.expand_path(File.join(File.dirname(__FILE__), '../../Release/')) | ||
debug_dll_path = File.expand_path(File.join(File.dirname(__FILE__), '../../Debug/')) | ||
if File.exists?(File.join(release_dll_path, 'Qt5Core.dll')) | ||
if File.exist?(File.join(release_dll_path, 'Qt5Core.dll')) | ||
qt_dll_path = release_dll_path | ||
elsif File.exists?(File.join(debug_dll_path, 'Qt5Core.dll')) | ||
elsif File.exist?(File.join(debug_dll_path, 'Qt5Core.dll')) | ||
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. Why are we looking for Qt5? I suppose "if install path fails" is always false then. |
||
qt_dll_path = debug_dll_path | ||
end | ||
end | ||
|
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.
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 comment
The 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 comment
The 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.