mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
CPack isn't used for iOS builds, so only kill XProtect if we're building for macOS
Also wait at most 10 s for XProtect to be killed
This commit is contained in:
parent
81c3339199
commit
d937d26b80
5
.github/workflows/github.yml
vendored
5
.github/workflows/github.yml
vendored
@ -269,11 +269,12 @@ jobs:
|
||||
ctest --preset ${{matrix.preset}}
|
||||
|
||||
- name: Kill XProtect to work around CPack issue on macOS
|
||||
if: runner.os == 'macOS'
|
||||
if: ${{ startsWith(matrix.platform, 'mac') }}
|
||||
run: |
|
||||
# Cf. https://github.com/actions/runner-images/issues/7522#issuecomment-1556766641
|
||||
echo Killing...; sudo pkill -9 XProtect >/dev/null || true;
|
||||
echo Waiting...; while pgrep XProtect; do sleep 3; done;
|
||||
echo "Waiting..."; counter=0; while pgrep XProtect && ((counter < 20)); do sleep 3; ((counter++)); done
|
||||
pgrep XProtect || true
|
||||
|
||||
- name: Pack
|
||||
id: cpack
|
||||
|
Loading…
x
Reference in New Issue
Block a user