Skip to content

Commit

Permalink
ci macos-x86_64: Upgrade to the macos-13 image (#3387)
Browse files Browse the repository at this point in the history
* ci macos-x86_64: Upgrade to the macos-13 image
* mac ci: Kill XProtectBehaviorService before making package
* Retry `make package` until it works
* Do `rm -rf` before `make package`
* Use Python3_FIND_STRATEGY="LOCATION"
  • Loading branch information
kazarmy authored Oct 21, 2024
1 parent 634a0be commit 22094c2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ jobs:
python-version: 3.12.x
output-id: artifact_windows
- name: macos-x86_64
os: macos-12
os: macos-13
arch: x86_64
package: true
- name: macos-arm64
Expand All @@ -432,6 +432,7 @@ jobs:
cd scripts
rm /usr/local/bin/2to3* # symlink to some kind of existing python2.7 installation conflicts with brew python3 which gets installed as indirect dependency
brew bundle
brew install kadwanev/brew/retry
- name: py dependencies
run: |
#python3 -m pip install -U pip==21.3.1
Expand Down Expand Up @@ -464,6 +465,8 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DPython3_ROOT_DIR="${CUTTER_DEPS_PYTHON_PREFIX}" \
-DPython_ROOT_DIR="${CUTTER_DEPS_PYTHON_PREFIX}" \
-DPython3_FIND_STRATEGY="LOCATION" \
-DPython_FIND_STRATEGY="LOCATION" \
-DCUTTER_ENABLE_PYTHON=ON \
-DCUTTER_ENABLE_PYTHON_BINDINGS=ON \
-DCUTTER_USE_BUNDLED_RIZIN=ON \
Expand All @@ -480,7 +483,12 @@ jobs:
-DCPACK_BUNDLE_APPLE_CERT_APP="-" \
.. && \
make -j4;
make package
# Reduce chance for random hdiutil "Resource busy" error when creating the dmg
# https://github.com/actions/runner-images/issues/7522#issuecomment-1556766641
echo killing XProtectBehaviorService; sudo pkill -9 XProtect >/dev/null || true;
echo waiting for XProtectBehaviorService kill; while pgrep XProtect; do sleep 3; done;
# Rimraf plugins built by `make package` because jsdec cannot be built twice
retry 'rm -rf ../jsdec ../libswift ../rz_libyara ../rz-silhouette; make package'
export CUTTER_VERSION=$(python3 ../scripts/get_version.py)
echo PACKAGE_NAME=${PACKAGE_NAME}.dmg >> $GITHUB_ENV
echo PACKAGE_PATH=build/${PACKAGE_NAME}.dmg >> $GITHUB_ENV
Expand Down Expand Up @@ -644,4 +652,4 @@ jobs:
cd sample-cpp
mkdir build
cmake -B build -DCMAKE_PREFIX_PATH="%CD%/../cutter;%CD%/../cutter-deps/qt"
cmake --build build
cmake --build build

0 comments on commit 22094c2

Please sign in to comment.