summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Donofry <rubberduckie3554@gmail.com>2024-02-27 20:35:00 +0000
committerJoe Donofry <rubberduckie3554@gmail.com>2024-02-27 20:35:00 +0000
commitebe2111ce1748e81c1c7548d2f71e75677778621 (patch)
tree2e6f2d82b5c189742efa245aa46a0e4f74ca0e4f
parent0649bc342dea6402dc9ba3d697c3ab9f91eca033 (diff)
parenta280ccfb50fc4c92f09b0f583fa8857f65887c8f (diff)
Merge branch 'gitlab_applesilicon' into 'master'
Gitlab Apple Silicon Runner See merge request nheko-reborn/nheko!26
-rw-r--r--.ci/macos/Brewfile1
-rwxr-xr-x.ci/macos/build.sh2
-rwxr-xr-x.ci/macos/notarize.sh2
-rw-r--r--.gitlab-ci.yml47
4 files changed, 35 insertions, 17 deletions
diff --git a/.ci/macos/Brewfile b/.ci/macos/Brewfile
index 84036fed..171cc0a4 100644
--- a/.ci/macos/Brewfile
+++ b/.ci/macos/Brewfile
@@ -10,3 +10,4 @@ brew "openssl"
brew "nlohmann_json"
brew "gstreamer"
brew "qtkeychain"
+brew "pipx"
diff --git a/.ci/macos/build.sh b/.ci/macos/build.sh
index ea6da16d..7d1d9143 100755
--- a/.ci/macos/build.sh
+++ b/.ci/macos/build.sh
@@ -8,6 +8,8 @@ set -ue
# Add Qt binaries to path
QT_BASEPATH=(${HOME}/Qt/6.*/macos/)
PATH="${QT_BASEPATH}/bin/:${PATH}"
+pipx ensurepath
+. ~/.zshrc
export PATH
CMAKE_PREFIX_PATH="${QT_BASEPATH}/lib/cmake"
diff --git a/.ci/macos/notarize.sh b/.ci/macos/notarize.sh
index b0c05154..f8c905ea 100755
--- a/.ci/macos/notarize.sh
+++ b/.ci/macos/notarize.sh
@@ -7,6 +7,8 @@ set -u
# Add Qt binaries to path
export QTPATH=(${PATH}/Qt/6.*/macos/bin)
+pipx ensurepath
+. ~/.zshrc
export PATH=${QTPATH}:${PATH}
security unlock-keychain -p "${RUNNER_USER_PW}" login.keychain
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d0bb51a..f410930e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -268,7 +268,9 @@ build-macos-as:
- brew update-reset
- unset HOMEBREW_NO_AUTO_UPDATE
- brew bundle --file .ci/macos/Brewfile
- - pip3 install aqtinstall
+ - pipx install aqtinstall
+ - pipx ensurepath
+ - . ~/.zshrc
- mkdir $HOME/Qt
- aqt install-qt --outputdir $HOME/qt mac desktop 6.6 clang_64 -m qtlocation qtimageformats qtmultimedia qtpositioning qtshadertools
script:
@@ -276,38 +278,48 @@ build-macos-as:
- export PATH="$QTPATH:${PATH}"
- ./.ci/macos/build.sh
-codesign-macos:
+.codesign-macos: &codesign_macos
stage: sign
- tags: [macos, macos-tart]
- variables:
- PLAT: "intel"
before_script:
- - pip3 install dmgbuild
+ - pipx install dmgbuild
+ - pipx ensurepath
+ tags: [macos]
script:
- export QTPATH=(/Users/jdonof/Qt/6.*/macos/bin)
- export PATH=${QTPATH}:${PATH}
- ./.ci/macos/notarize.sh
after_script:
- ./.ci/upload-nightly-gitlab.sh artifacts/nheko-${CI_COMMIT_SHORT_SHA}-${PLAT}.dmg
+ artifacts:
+ paths:
+ - artifacts/nheko-${CI_COMMIT_SHORT_SHA}-${PLAT}.dmg
+ - /tmp/notarize*
+ name: nheko-${CI_COMMIT_SHORT_SHA}-macos
+
+codesign-macos-intel:
+ <<: *codesign_macos
+ variables:
+ PLAT: "intel"
needs:
- job: build-macos
- optional: true # optional since we want to be able to also trigger this job from cirrus ci for apple silicon builds.
+ rules:
+ - if : '$CI_COMMIT_BRANCH == "master"'
+ - if : $CI_COMMIT_TAG
+
+codesign-macos-as:
+ <<: *codesign_macos
+ tags: [macos]
+ variables:
+ PLAT: "apple_silicon"
+ needs:
- job: build-macos-as
- optional: true
+ optional: true # optional since we want to be able to also trigger this job from cirrus ci for apple silicon builds.
rules:
- if : '$CI_PIPELINE_TRIGGERED && $CI_COMMIT_REF_PROTECTED == "true"'
variables:
PLAT: "apple_silicon"
- - if : '$CI_RUNNER_TAGS =~ /^mac-tart/'
- variables:
- PLAT: "apple_silicon"
- if : '$CI_COMMIT_BRANCH == "master"'
- if : $CI_COMMIT_TAG
- artifacts:
- paths:
- - artifacts/nheko-${CI_COMMIT_SHORT_SHA}-${PLAT}.dmg
- - /tmp/notarize*
- name: nheko-${CI_COMMIT_SHORT_SHA}-macos
build-flatpak:
stage: build
@@ -446,7 +458,8 @@ github-release:
dependencies:
#- appimage-amd64 <- disabled because of missing packages
- build-flatpak
- - codesign-macos
+ - codesign-macos-intel
+ - codesign-macos-as
- codesign-windows
before_script:
- apk update && apk add jq curl perl