Skip to content

Commit

Permalink
ci: Resurrect macOS builds on Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Atkins committed Aug 14, 2020
1 parent 9e32dcf commit d261cb2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
44 changes: 22 additions & 22 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,28 @@ jobs:
- bash: scripts/ci/azure/run.sh test
name: Test

#- job: macos
# timeoutInMinutes: 90
# strategy:
# matrix:
# macos1014_xcode103_ninja:
# hostImage: 'macOS-10.14'
# macos1015_xcode111_make:
# hostImage: 'macOS-10.15'
#
# pool:
# vmImage: $[ variables['hostImage'] ]
# steps:
# - bash: scripts/ci/azure/macos-setup.sh
# name: Setup
# - bash: scripts/ci/azure/run.sh update
# name: Update
# - bash: scripts/ci/azure/run.sh configure
# name: Configure
# - bash: scripts/ci/azure/run.sh build
# name: Build
# - bash: scripts/ci/azure/run.sh test
# name: Test
- job: macos
timeoutInMinutes: 90
strategy:
matrix:
macos1014_xcode103_ninja:
hostImage: 'macOS-10.14'
macos1015_xcode111_make:
hostImage: 'macOS-10.15'

pool:
vmImage: $[ variables['hostImage'] ]
steps:
- bash: scripts/ci/azure/macos-setup.sh
name: Setup
- bash: scripts/ci/azure/run.sh update
name: Update
- bash: scripts/ci/azure/run.sh configure
name: Configure
- bash: scripts/ci/azure/run.sh build
name: Build
- bash: scripts/ci/azure/run.sh test
name: Test

- job: linux
timeoutInMinutes: 90
Expand Down
13 changes: 7 additions & 6 deletions scripts/ci/azure/macos-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@ case "$SYSTEM_JOBNAME" in
;;
esac

echo "Installing CMake Nightly"
curl -L https://cmake.org/files/dev/cmake-3.16.20191218-g8262562-Darwin-x86_64.tar.gz | sudo tar -C /Applications --strip-components=1 -xz

echo "Removing all existing brew packages"
echo "Removing all existing brew package and update teh formule"
brew remove --force $(brew list)
brew update

echo "Installing Kitware Ninja"
brew install ninja
echo "Installing Kitware CMake and Ninja"
brew install cmake ninja

echo "Installing GCC"
brew install gcc

echo "Installing blosc compression"
brew install c-blosc

echo "Installing python and friends"
brew install python numpy

if [[ "$SYSTEM_JOBNAME" =~ .*openmpi.* ]]
then
echo "Installing OpenMPI"
Expand Down

0 comments on commit d261cb2

Please sign in to comment.