Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GH] Hotfix macos build #1711

Merged
merged 14 commits into from
Aug 20, 2024
34 changes: 8 additions & 26 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,15 @@ jobs:
- name: Kill XProtectBehaviorService
run: |
echo Killing XProtect.; sudo pkill -9 XProtect >/dev/null || true;

- name: Install latest Python3 via brew
run: brew install python3 || brew link --overwrite [email protected]

- name: Downgrade Python version
uses: actions/setup-python@v4
id: cp39
with:
python-version: '3.9'

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
setup-python: false
version: '5.15.2'
target: 'desktop'
- name: Install latest Qt5 via brew
run: brew install qt@5

- name: Install Dependencies
run: brew install ninja doxygen graphviz protobuf [email protected] pkg-config

- name: Install Cap’n Proto
run: |
mkdir "${{ runner.workspace }}/capnp"
cd "${{ runner.workspace }}/capnp"
curl -O https://capnproto.org/capnproto-c++-0.9.0.tar.gz
tar zxf capnproto-c++-0.9.0.tar.gz
cd capnproto-c++-0.9.0
./configure
make -j
sudo make install
run: brew install ninja doxygen graphviz protobuf [email protected] pkg-config capnp

- name: Checkout
uses: actions/checkout@v4
Expand All @@ -56,7 +38,7 @@ jobs:

- name: Install Python requirements
run: |
sudo pip3 install -r "$GITHUB_WORKSPACE/doc/requirements.txt"
sudo pip3 install -r "$GITHUB_WORKSPACE/doc/requirements.txt" --break-system-packages

- name: CMake
run: |
Expand Down Expand Up @@ -92,7 +74,7 @@ jobs:
-DECAL_THIRDPARTY_BUILD_TCP_PUBSUB=ON \
-DECAL_THIRDPARTY_BUILD_QWT=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/usr/local/opt/[email protected] \
-DCMAKE_PREFIX_PATH="/usr/local/opt/[email protected];/usr/local/opt/qt@5" \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON \
-DPython_FIND_STRATEGY=LOCATION \
Expand Down
Loading