-
Notifications
You must be signed in to change notification settings - Fork 23
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
build macOS environment on GitHub Actions, update dependencies, add ccache #94
Conversation
Qt 5.14 has major performance problems with the legacy QGLWidget on macOS. Migrating to QOpenGLWidget will be done for Mixxx 2.4.
ping |
Ping. If no one has anything to say, I'll just go ahead and merge this soon. |
# See also: | ||
# - http://mywiki.wooledge.org/BashFAQ/105 | ||
# - https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
set -e -o pipefail |
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.
I'm petrry sure that bash scripts are executes with pipefail anyway
restore-keys: | | ||
${{ env.cache-name }}-${{ runner.os }}-${{ github.head_ref }} | ||
${{ env.cache-name }}-${{ runner.os }} | ||
- name: build |
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.
- name: build | |
- name: Build |
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.
done
# Get the current installed macOS SDK. | ||
MACOSX_SDK=10.15 | ||
# 10.12 is the minimum macOS version for Qt 5.12 | ||
MACOSX_TARGET=10.12 |
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.
Can you put this in an env
block for this step? I think it's easier to read then.
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.
done
# So we can tee into it right away. | ||
mkdir -p environment/${ENVIRONMENT_NAME} | ||
|
||
export DEPENDENCY_CACHE=/Users/runner/dependencies |
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.
env?
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.
done
@@ -39,7 +39,7 @@ export QTDIR=$MIXXX_PREFIX/Qt-${VERSION_NUMBER} | |||
# Disable relocatable qt due to https://bugs.launchpad.net/mixxx/+bug/1871238 | |||
# TODO(rryan): Disable framework build or use frameworks properly. Qt assumes | |||
# that if frameworks are enabled then they are used for deployment. | |||
./configure -opensource -prefix $QTDIR -sdk macosx${MIXXX_MACOSX_SDK} -system-sqlite -sql-sqlite -qt-zlib -platform macx-clang -release -confirm-license -securetransport -force-debug-info -no-feature-relocatable -nomake examples -nomake tests -skip qt3d -skip qtwebengine -I${MIXXX_PREFIX}/include -L${MIXXX_PREFIX}/lib | |||
./configure -opensource -prefix $QTDIR -sdk macosx${MIXXX_MACOSX_SDK} -ccache -system-sqlite -sql-sqlite -qt-zlib -platform macx-clang -release -confirm-license -securetransport -force-debug-info -nomake examples -nomake tests -skip qt3d -skip qtwebengine -I${MIXXX_PREFIX}/include -L${MIXXX_PREFIX}/lib |
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 we put Qt in a separate subdirectory? That makes specifying the correct CMAKE_PREFIX_PATH much harder for Windows/macos devs. Can we change that?
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.
I don't know. I asked @rryan this on Zulip and did not get a response. AFAIK we could change it. But there is no pressing need to either.
dccda99
to
b7f5cef
Compare
b7f5cef
to
dd844a1
Compare
Ready for merge? |
ping @Holzhaus |
No description provided.