mirror of
https://github.com/sudoxnym/open-hyperion.git
synced 2026-07-13 15:38:36 +00:00
Add MacOS CI builds
This commit is contained in:
parent
d0020c222a
commit
a4be65494b
2 changed files with 61 additions and 1 deletions
|
|
@ -174,3 +174,53 @@ build_windows_64:
|
||||||
paths:
|
paths:
|
||||||
- _build/*.7z
|
- _build/*.7z
|
||||||
expire_in: 30 days
|
expire_in: 30 days
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------#
|
||||||
|
# MacOS Build Target #
|
||||||
|
#-----------------------------------------------------------------------#
|
||||||
|
build_macos_arm64:
|
||||||
|
tags:
|
||||||
|
- macos
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- eval $(/opt/homebrew/bin/brew shellenv)
|
||||||
|
- qmake OpenRGBE131ReceiverPlugin.pro
|
||||||
|
- make -j16
|
||||||
|
- install_name_tool libOpenRGBE131ReceiverPlugin.1.0.0.dylib -change /opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets
|
||||||
|
- install_name_tool libOpenRGBE131ReceiverPlugin.1.0.0.dylib -change /opt/homebrew/opt/qt@5/lib/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui
|
||||||
|
- install_name_tool libOpenRGBE131ReceiverPlugin.1.0.0.dylib -change /opt/homebrew/opt/qt@5/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore
|
||||||
|
- codesign --force --verify -s OpenRGB libOpenRGBE131ReceiverPlugin.1.0.0.dylib
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- libOpenRGBE131ReceiverPlugin.1.0.0.dylib
|
||||||
|
expire_in: 30 days
|
||||||
|
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PROJECT_PATH == "OpenRGBDevelopers/OpenRGBE131ReceiverPlugin"'
|
||||||
|
when: on_success
|
||||||
|
- if: '$BUILD_MACOS =~ /.+/'
|
||||||
|
when: on_success
|
||||||
|
|
||||||
|
build_macos_intel:
|
||||||
|
tags:
|
||||||
|
- macos
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- eval $(/usr/local/bin/brew shellenv)
|
||||||
|
- arch -x86_64 /usr/local/bin/qmake OpenRGBE131ReceiverPlugin.pro
|
||||||
|
- arch -x86_64 make -j16
|
||||||
|
- arch -x86_64 install_name_tool libOpenRGBE131ReceiverPlugin.1.0.0.dylib -change /usr/local/bin/opt/qt@5/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets
|
||||||
|
- arch -x86_64 install_name_tool libOpenRGBE131ReceiverPlugin.1.0.0.dylib -change /usr/local/bin/opt/qt@5/lib/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui
|
||||||
|
- arch -x86_64 install_name_tool libOpenRGBE131ReceiverPlugin.1.0.0.dylib -change /usr/local/bin/opt/qt@5/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore
|
||||||
|
- arch -x86_64 codesign --force --verify -s OpenRGB libOpenRGBE131ReceiverPlugin.1.0.0.dylib
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- libOpenRGBE131ReceiverPlugin.1.0.0.dylib
|
||||||
|
expire_in: 30 days
|
||||||
|
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PROJECT_PATH == "OpenRGBDevelopers/OpenRGBE131ReceiverPlugin"'
|
||||||
|
when: on_success
|
||||||
|
- if: '$BUILD_MACOS =~ /.+/'
|
||||||
|
when: on_success
|
||||||
|
|
@ -88,7 +88,7 @@ win32:DEFINES +=
|
||||||
#-----------------------------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------------------------#
|
||||||
# Default rules for deployment. #
|
# Default rules for deployment. #
|
||||||
#-----------------------------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------------------------#
|
||||||
unix {
|
unix:!macx {
|
||||||
target.path = /usr/lib
|
target.path = /usr/lib
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -96,3 +96,13 @@ unix {
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
OpenRGBE131ReceiverDialog.ui
|
OpenRGBE131ReceiverDialog.ui
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------#
|
||||||
|
# MacOS-specific Configuration #
|
||||||
|
#-----------------------------------------------------------------------#
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.15
|
||||||
|
|
||||||
|
macx: {
|
||||||
|
CONFIG += c++17
|
||||||
|
LIBS += -framework OpenAL
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue