You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
750 B
22 lines
750 B
#!/usr/bin/env bash
|
|
|
|
# This simple script can be used to set up a CI node running MacOS.
|
|
# An additional requirement that is *not* handled by this script is the
|
|
# installation of Xcode, which requires manual intervention.
|
|
|
|
source secrets.env
|
|
|
|
# Install Homebrew
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
|
|
|
# Install the required tools to run CI
|
|
brew install sphinx-doc python3 ninja cmake buildkite/buildkite/buildkite-agent
|
|
|
|
CFG_DIR="$(brew --prefix)/etc/buildkite-agent"
|
|
|
|
# Setup the tags of the agent
|
|
echo 'tags="queue=libcxx-macos-builders"' >> "${CFG_DIR}/buildkite-agent.cfg"
|
|
|
|
# Setup the BuildKite Agent token
|
|
sed -i '' "s/xxx/${BUILDKITE_AGENT_TOKEN}/g" "${CFG_DIR}/buildkite-agent.cfg"
|