]> OCCT Git - occt.git/commitdiff
Testing - Fix macOS setup to install Mono separately (#697) master
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sat, 30 Aug 2025 16:16:23 +0000 (17:16 +0100)
committerGitHub <noreply@github.com>
Sat, 30 Aug 2025 16:16:23 +0000 (17:16 +0100)
- Replaces single brew install command with multiple individual brew install commands
- Each package installation is wrapped with `|| true` to prevent failures from stopping the workflow

.github/actions/configure-occt/action.yml
.github/actions/vcpkg-setup/action.yml
.github/workflows/build-and-test-multiplatform.yml

index df2e4746f59e0cca0165e74bee42b9826c28c695..97c63bffe7201c93fd7a44b8b8cbed9e1479b129 100644 (file)
@@ -126,7 +126,7 @@ runs:
               -D BUILD_GTEST=ON \
               -D BUILD_CPP_STANDARD=C++17 \
               -D INSTALL_GTEST=ON \
-              -D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra" \
+              -D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wno-error=cast-function-type-mismatch" \
               ${{ inputs.additional-cmake-flags }} ..
         echo "Configuration completed successfully for macOS"
       shell: bash
index 4cf57d4d436c10a67ae7076ae66789699260c6e4..8a904b2f19302f4b2d3f46c7c3ee856a87f04d59 100644 (file)
@@ -56,7 +56,14 @@ runs:
       if: runner.os == 'macOS'
       run: |
         brew update || true
-        brew install cmake ninja nasm autoconf automake mono openexr || true
+        # Install each package separately to continue even if some fail
+        brew install cmake || true
+        brew install ninja || true
+        brew install nasm || true
+        brew install autoconf || true
+        brew install automake || true
+        brew install mono || true
+        brew install openexr || true
         brew install --cask xquartz || true
       shell: bash
 
index 9b9ac7148ee42b3dd2da192075c9389ff6e5cf97..667d25576497798d4e65cad34b6f2712cc62a40e 100644 (file)
@@ -125,7 +125,7 @@ jobs:
         artifact-name: install-macos-clang-no-pch
         build-use-pch: 'false'
         build-opt-profile: 'Default'
-        additional-cmake-flags: '-D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra" -D CMAKE_C_FLAGS="-Werror -Wall -Wextra"'
+        additional-cmake-flags: '-D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wno-error=cast-function-type-mismatch" -D CMAKE_C_FLAGS="-Werror -Wall -Wextra -Wno-error=cast-function-type-mismatch"'
         cmake-build-type: 'Debug'
         github-token: ${{ secrets.GITHUB_TOKEN }}