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

MacOS arm has no vcpkg pre-installed #9286

Closed
3 of 13 tasks
TrueBrain opened this issue Feb 4, 2024 · 2 comments
Closed
3 of 13 tasks

MacOS arm has no vcpkg pre-installed #9286

TrueBrain opened this issue Feb 4, 2024 · 2 comments

Comments

@TrueBrain
Copy link

Description

All runner images have vcpkg preinstalled, including the non-arm runners of MacOS. But the arm ones do not. And I can't really find anything if that was a deliberately choice, or just an oversight.

So from my perspective, this is a bug. Upgrading a macos-latest to macos-14 causes build failures on my side, as vcpkg is missing. But if we install vcpkg manually it works just fine.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

  Image: macos-14-arm64
  Version: 20240116.1

Is it regression?

Against macos-latest, yes. Otherwise, no.

Expected behavior

Have vcpkg installed on all images; not all except 2.

Actual behavior

No vcpkg installed on arm images

Repro steps

Create a workflow that uses CMake with vcpkg.
Run CMake with any other image: works fine.
Run CMake with arm images:

     Could not find toolchain file:
    /usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake

Did not test, but given vcpkg is not listed here, it is reasonable to think you also can't use vcpkg from a bash step.

@MaksimZhukov
Copy link
Contributor

Hello @TrueBrain!
This is an expected behaviour. It has been decided not to bake vcpkg into the image due to maintenance concerns and relatively short installation time. Please continue installing in runtime.

@TrueBrain
Copy link
Author

Tnx for the reply! Am I right to assume other new images, like ubuntu etc, as they arrive, will also not have vcpkg? Just so we can plan ahead :)

Tnx!

RealChuan added a commit to RealChuan/Cpp-Examples that referenced this issue Apr 25, 2024
RealChuan added a commit to RealChuan/Cpp-Examples that referenced this issue Apr 25, 2024
RealChuan added a commit to RealChuan/Cpp-Examples that referenced this issue Apr 25, 2024
RealChuan added a commit to RealChuan/Qt-App that referenced this issue Apr 25, 2024
RealChuan added a commit to RealChuan/Qt-App that referenced this issue Apr 25, 2024
RealChuan added a commit to RealChuan/Cpp-Examples that referenced this issue Apr 26, 2024
RealChuan added a commit to RealChuan/Qt-App that referenced this issue Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants