Skip to content

Commit a26b45d

Browse files
CPack workaround for macOS 13
1 parent 4af8714 commit a26b45d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/qt5_6.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,15 @@ jobs:
126126
- name: 👷 Build
127127
shell: bash
128128
run: |
129+
# Remove once issue with hombrew cache action is fixed
129130
brew reinstall --formula cmake
131+
# Build
130132
cmake --preset macos-${{ env.BUILD_TYPE }}
131-
cmake --build --preset macos-${{ env.BUILD_TYPE }} --target package --parallel $(sysctl -n hw.ncpu)
133+
cmake --build --preset macos-${{ env.BUILD_TYPE }} --parallel $(sysctl -n hw.ncpu)
134+
# CPack workaround for macOS 13
135+
echo killing...; sudo pkill -9 XProtect >/dev/null || true;
136+
echo waiting...; while pgrep XProtect; do sleep 3; done;
137+
cd build; cpack
132138
env:
133139
BUILD_TYPE: ${{ inputs.event_name == 'pull_request' && 'debug' || 'release' }}
134140

0 commit comments

Comments
 (0)