-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
macos-steps.yml
36 lines (30 loc) · 899 Bytes
/
macos-steps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
steps:
- checkout: self
clean: true
fetchDepth: 5
submodules: true
- task: DownloadBuildArtifacts@0
displayName: 'Download ccache'
inputs:
artifactName: $(ccacheArtifactName)
downloadPath: $(ccacheDir)
- bash: |
brew update
brew install cmake ccache pkg-config arpack eigen glpk hdf5 json-c lapack lzo nlopt snappy xz
displayName: Install dependencies
condition: always()
- task: CMake@1
displayName: Setup
inputs:
cmakeArgs: -DBUILD_EXAMPLES=OFF -DBUNDLE_JSON=OFF -DBUNDLE_NLOPT=OFF -DENABLE_TESTING=ON -DENABLE_COVERAGE=OFF -DBUILD_META_EXAMPLES=OFF ..
- script: make -j4
displayName: Build
workingDirectory: build
- script: ctest --output-on-failure -j 2
displayName: Test
workingDirectory: build
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(ccacheDir)
artifactName: $(ccacheArtifactName)
publishLocation: 'Container'