Skip to content

Commit

Permalink
Fix CI (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
umireon authored Oct 10, 2023
1 parent 3d7d77b commit 832efe1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/scripts/.build.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ ${_usage_host:-}"
-G "${generator}"
-DQT_VERSION=${QT_VERSION:-6}
-DCMAKE_BUILD_TYPE=${config}
-DCMAKE_INSTALL_PREFIX=/usr
)
local cmake_version
Expand Down
14 changes: 12 additions & 2 deletions .github/scripts/.package.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,23 @@ ${_usage_host:-}"
if (( _loglevel > 1 || ${+CI} )) _tarflags="v${_tarflags}"
if (( package )) {
if [[ ! -f ${project_root}/release/${config}/${product_name}.pkg ]] {
log_error 'Installer Package not found. Run the build script or the CMake build and install procedures first.'
if [[ ! -f ${project_root}/build_macos/Distribution.generated.xml ]] {
log_error 'Distribution file not found. Run the build script or the CMake build and install procedures first.'
return 2
}
log_group "Packaging ${product_name}..."
pushd ${project_root}
pkgbuild \
--component "${project_root}/release/${config}/${product_name}.plugin" \
--install-location "/Library/Application Support/obs-studio/plugins" \
--scripts "${project_root}/cmake/macos/resources/scripts" \
"${project_root}/release/${config}/${product_name}-flat.pkg"
productbuild \
--distribution "${project_root}/build_macos/Distribution.generated.xml" \
--package-path "${project_root}/release/${config}" \
"${project_root}/release/${config}/${product_name}.pkg"
rm "${project_root}/release/${config}/${product_name}-flat.pkg"
if (( codesign )) {
read_codesign_installer
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
case "${GITHUB_EVENT_NAME}" in
pull_request)
config_data=('codesign:false' 'notarize:false' 'package:false' 'config:RelWithDebInfo')
if gh pr view --json labels \
| jq -e -r '.labels[] | select(.name == "Seeking Testers")' > /dev/null; then
if [[ ${{ contains(github.event.pull_request.labels.*.name, 'Seeking Testers') }} = true ]]; then
config_data[0]='codesign:true'
config_data[2]='package:true'
fi
Expand Down

0 comments on commit 832efe1

Please sign in to comment.