-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
macos-steps.yml
37 lines (31 loc) · 930 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
37
steps:
- checkout: self
clean: true
fetchDepth: 5
submodules: true
- template: ./download-extract.yml
parameters:
name: 'CCache'
artifactName: $(ccacheArtifactName)
destinationFolder: $(ccacheDir)
downloadPath: $(build.binariesDirectory)
- bash: |
brew update
brew install cmake ccache pkg-config arpack eigen glpk hdf5 json-c lapack lzo nlopt snappy xz
displayName: Install dependencies
- 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
- template: ./archive-deploy.yml
parameters:
name: 'CCache'
dir: $(ccacheDir)
archive: $(ccacheArchive)
artifactName: $(ccacheArtifactName)