From b79cf72f8434df99fccae7e11cdddcdefa9afce2 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Mon, 17 Nov 2025 21:30:15 -0600 Subject: [PATCH] Rework MacOS CI to build both Qt5 and Qt6 builds, requires qt@6 installed first and then qt@5 installed second with brew --- .gitlab-ci.yml | 56 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c2f29ee38..e6b5404a2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -516,6 +516,31 @@ before_script: # MacOS Build Target # #-----------------------------------------------------------------------# "MacOS ARM64": + tags: + - macos + stage: build + script: + - eval $(/opt/homebrew/bin/brew shellenv) + - /opt/homebrew/opt/qt@5/bin/qmake OpenRGB.pro + - make -j16 + - /opt/homebrew/opt/qt@5/bin/macdeployqt OpenRGB.app -codesign=OpenRGB + + artifacts: + name: "${CI_PROJECT_NAME}_MacOS_ARM64_${CI_COMMIT_SHORT_SHA}" + paths: + - OpenRGB.app + expire_in: 30 days + + rules: + - if: '$CI_PROJECT_PATH == "CalcProgrammer1/OpenRGB"' + when: on_success + - if: '$BUILD_MACOS =~ /.+/' + when: on_success + - if: $CI_PIPELINE_SOURCE == "push" + when: manual + allow_failure: true + +"MacOS ARM64 Qt6": tags: - macos stage: build @@ -526,7 +551,7 @@ before_script: - macdeployqt OpenRGB.app -codesign=OpenRGB artifacts: - name: "${CI_PROJECT_NAME}_MacOS_ARM64_${CI_COMMIT_SHORT_SHA}" + name: "${CI_PROJECT_NAME}_MacOS_ARM64_Qt6_${CI_COMMIT_SHORT_SHA}" paths: - OpenRGB.app expire_in: 30 days @@ -546,9 +571,9 @@ before_script: stage: build script: - eval $(/usr/local/bin/brew shellenv) - - arch -x86_64 /usr/local/bin/qmake OpenRGB.pro + - arch -x86_64 /usr/local/opt/qt@5/bin/qmake OpenRGB.pro - arch -x86_64 make -j16 - - arch -x86_64 macdeployqt OpenRGB.app -codesign=OpenRGB + - arch -x86_64 /usr/local/opt/qt@5/bin/macdeployqt OpenRGB.app -codesign=OpenRGB artifacts: name: "${CI_PROJECT_NAME}_MacOS_Intel_${CI_COMMIT_SHORT_SHA}" @@ -565,6 +590,31 @@ before_script: when: manual allow_failure: true +"MacOS Intel Qt6": + tags: + - macos + stage: build + script: + - eval $(/usr/local/bin/brew shellenv) + - arch -x86_64 /usr/local/bin/qmake OpenRGB.pro + - arch -x86_64 make -j16 + - arch -x86_64 /usr/local/bin/macdeployqt OpenRGB.app -codesign=OpenRGB + + artifacts: + name: "${CI_PROJECT_NAME}_MacOS_Intel_Qt6_${CI_COMMIT_SHORT_SHA}" + paths: + - OpenRGB.app + expire_in: 30 days + + rules: + - if: '$CI_PROJECT_PATH == "CalcProgrammer1/OpenRGB"' + when: on_success + - if: '$BUILD_MACOS =~ /.+/' + when: on_success + - if: $CI_PIPELINE_SOURCE == "push" + when: manual + allow_failure: true + #-----------------------------------------------------------------------# # Windows (64-bit) MSI Target # #-----------------------------------------------------------------------#