mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 16:09:01 +08:00
ff190a561a
* update 2021-07-27 macOS -> 11.5.1, XCode -> 12.5.1 * update azure-pipelines * update sha of macfuse * change how macos-ci-base works * fix build errors * fix itpp:linux * more fixes * remove tab * allow version changes in all the remove/rename-version patches * fix libunistring for real * robert CR
36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
require 'json'
|
|
|
|
configuration = JSON.parse(File.read("#{__dir__}/vagrant-box-configuration.json"))
|
|
|
|
Vagrant.configure('2') do |config|
|
|
config.vm.box = 'vcpkg/macos-base'
|
|
config.vm.synced_folder '.', '/Users/vagrant/shared'
|
|
|
|
config.vm.provision 'shell',
|
|
run: 'once',
|
|
name: 'Install Xcode Command Line Tools: attach dmg file',
|
|
inline: 'hdiutil attach shared/clt.dmg -mountpoint /Volumes/setup-installer',
|
|
privileged: false
|
|
config.vm.provision 'shell',
|
|
run: 'once',
|
|
name: 'Install Xcode Command Line Tools: run installer',
|
|
inline: 'installer -pkg "/Volumes/setup-installer/Command Line Tools.pkg" -target /',
|
|
privileged: true
|
|
config.vm.provision 'shell',
|
|
run: 'once',
|
|
name: 'Install XCode Command Line Tools: detach dmg file',
|
|
inline: 'hdiutil detach /Volumes/setup-installer',
|
|
privileged: false
|
|
|
|
config.vm.provision 'shell',
|
|
run: 'once',
|
|
name: 'Install brew',
|
|
inline: '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"',
|
|
privileged: false
|
|
config.vm.provision 'shell',
|
|
run: 'once',
|
|
name: 'Install brew applications',
|
|
inline: "brew install #{configuration['brew'].join(' ')} && brew install --cask #{configuration['brew-cask'].join(' ')}",
|
|
privileged: false
|
|
end
|