Skip to content

Commit

Permalink
CI: TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
thedataking committed Nov 30, 2023
1 parent 503a75b commit eef0c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
# prepare environment for the following steps
source $HOME/.cargo/env
brew info llvm
pip3 install -r ./scripts/requirements.txt --user --disable-pip-version-check
displayName: 'Provision macOS'
- script: |
Expand Down
10 changes: 2 additions & 8 deletions scripts/provision_mac.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

set -e

# complain if we're not on macOS
UNAME=$(uname -s)
if [ "$UNAME" != "Darwin" ]; then
Expand All @@ -22,18 +20,14 @@ export HOMEBREW_NO_AUTO_UPDATE=1
# NOTE: Pin LLVM to a known good version since new releases
# tend not to be backwards compatible
# `bash` needed b/c macOS ships with bash 3, which doesn't support arrays properly
hb_packages=(python cmake ninja gpg llvm bash)
for item in "${hb_packages[@]}"; do
brew info "${item}" | grep 'Not installed' > /dev/null && brew install "${item}"
done
brew install -q python cmake ninja gpg llvm@17 bash

type -P "pip3" >/dev/null || {
echo >&2 "pip3 not in path."; exit 1;
}

# Python 3 packages
pip3 install --user --upgrade pip
pip3 install -r "$SCRIPT_DIR/requirements.txt" --user --disable-pip-version-check
pip3 install -r "$SCRIPT_DIR/requirements.txt"

# Rust and dependencies
RUST_TOOLCHAIN_FILE="$SCRIPT_DIR/../rust-toolchain.toml"
Expand Down

0 comments on commit eef0c2d

Please sign in to comment.