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

fix various pipeline failures #1172

Merged
merged 12 commits into from
Nov 25, 2024

Conversation

carsonRadtke
Copy link
Collaborator

@carsonRadtke carsonRadtke commented Nov 15, 2024

CI checks are failing because the cmake version requires cmake minimum requires >= 3.10. This PR addresses that issue.

Looks like actions/runner-images#10703 took away support for xcode 14. That is why the latest action failed. There an active PR adding support for xcode 16 to the macos runner (actions/runner-images#10967). This commit will fail until that has been merged, but it is probably worth waiting for. Edit: Looks like that PR was closed, so we won't wait.

Looks like actions/runner-images#10703 took
away support for xcode 14. That is why the latest action failed. There
an active PR adding support for xcode 16 to the macos runner
(actions/runner-images#10967). This commit will
fail until that has been merged, but it is probably worth waiting for.
CI checks are failing because the cmake version requires cmake minimum
requires >= 3.10. This PR addresses that issue.
Note: not using the latest version (v1.15.2) because there is a bug
requiring that requires -std=c++17 to build.
This was referenced Nov 15, 2024
@carsonRadtke carsonRadtke changed the title Set cmake_minimum_required to 3.10 fix various pipeline failures Nov 15, 2024
@@ -38,7 +38,7 @@ jobs:
echo "Emulator starting in background"

- name: Configure
run: cmake -Werror=dev -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=16 -DANDROID_ABI=x86_64 -DCMAKE_BUILD_TYPE=Debug ..
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/runner-images claims that cmake version 3.22.1 ships with Android on macos-14, but I couldn't find it. I would prefer using the builtin one (and keep the -Werror=dev flag), but at the end of the day we control neither the image nor the cmake file so removing the dev flag is fine.

project(googletest-download NONE)

include(ExternalProject)
ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG 1b18723e874b256c1e39378c6774a90701d70f7a
GIT_TAG v1.14.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the latest version, but v1.15 is incompatible with -std=c++14.

@carsonRadtke carsonRadtke merged commit 74d2bb7 into microsoft:main Nov 25, 2024
83 checks passed
@carsonRadtke carsonRadtke deleted the fix-cmake-min-version branch November 25, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant