Skip to content
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

Merged
merged 24 commits into from
Nov 21, 2020

Conversation

Be-ing
Copy link
Contributor

@Be-ing Be-ing commented Nov 16, 2020

No description provided.

@Be-ing
Copy link
Contributor Author

Be-ing commented Nov 17, 2020

ping

@Be-ing
Copy link
Contributor Author

Be-ing commented Nov 18, 2020

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: build
- name: Build

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 41 to 44
# 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
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

env?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

scripts/macosx/build_qt5.sh Show resolved Hide resolved
scripts/macosx/build_shout.sh Show resolved Hide resolved
scripts/macosx/build_taglib.sh Show resolved Hide resolved
@@ -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
Copy link
Member

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?

Copy link
Contributor Author

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.

@Be-ing Be-ing force-pushed the mac_github_actions branch 3 times, most recently from dccda99 to b7f5cef Compare November 18, 2020 23:31
@Be-ing Be-ing force-pushed the mac_github_actions branch from b7f5cef to dd844a1 Compare November 19, 2020 03:30
@Be-ing
Copy link
Contributor Author

Be-ing commented Nov 19, 2020

Ready for merge?

@Be-ing
Copy link
Contributor Author

Be-ing commented Nov 21, 2020

ping @Holzhaus

@Holzhaus Holzhaus merged commit e8b957e into mixxxdj:2.3.x-unix Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants