This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathazure-pipelines.yml
122 lines (105 loc) · 2.97 KB
/
azure-pipelines.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
variables:
CCACHE_DIR: $(Pipeline.Workspace)/ccache
# cpython versions to build wheels for.
PYTHON_VERSIONS: cp36 cp37 cp38 cp39 cp310 cp311 cp312
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
production:
btorConfig: ''
btorConfigEnv: ''
production_clang:
btorConfig: ''
btorConfigEnv: 'CC=clang CXX=clang++'
debug:
btorConfig: '-g'
btorConfigEnv: ''
debug_gmp:
btorConfig: '-g --gmp'
btorConfigEnv: ''
python3:
needCython: true
btorConfig: '--python --py3'
btorConfigEnv: ''
steps:
- bash: |
sudo apt-get install ccache -y
echo "##vso[task.prependpath]/usr/lib/ccache"
displayName: 'Install ccache'
- task: CacheBeta@0
inputs:
key: $(Agent.OS)
path: $(CCACHE_DIR)
displayName: ccache
- script: sudo pip install -U cython
condition: eq(variables.needCython, true)
displayName: 'Install Cython'
- script: |
./contrib/setup-btor2tools.sh
./contrib/setup-cadical.sh
./contrib/setup-lingeling.sh
./contrib/setup-cms.sh
displayName: 'Setup dependencies'
- script: $(btorConfigEnv) ./configure.sh $(btorConfig)
displayName: 'Configure Boolector'
- script: make -j $(nproc)
workingDirectory: 'build'
displayName: 'Build Boolector'
- script: ctest -j$(nproc) --output-on-failure
workingDirectory: 'build'
displayName: 'Run CTest'
- job: macOS
pool:
vmImage: 'macos-latest'
strategy:
matrix:
production:
btorConfig: ''
btorConfigEnv: ''
production_clang:
btorConfig: ''
btorConfigEnv: 'CC=clang CXX=clang++'
debug:
btorConfig: '-g'
btorConfigEnv: ''
debug_gmp:
btorConfig: '-g --gmp'
btorConfigEnv: ''
#python3:
# needCython: true
# btorConfig: '--python --py3'
# btorConfigEnv: ''
steps:
- script: echo "##vso[task.setvariable variable=ncpus]$(sysctl -n hw.logicalcpu)"
displayName: 'Determine number of CPUs'
- bash: |
brew install ccache
echo "##vso[task.prependpath]/usr/local/opt/ccache/libexec"
displayName: 'Install ccache'
- task: CacheBeta@0
inputs:
key: $(Agent.OS)
path: $(CCACHE_DIR)
displayName: ccache
- script: sudo pip3 install cython
condition: eq(variables.needCython, true)
displayName: 'Install Cython'
- script: |
brew remove boost
./contrib/setup-btor2tools.sh
./contrib/setup-cadical.sh
./contrib/setup-lingeling.sh
./contrib/setup-cms.sh
displayName: 'Setup dependencies'
- script: $(btorConfigEnv) ./configure.sh $(btorConfig)
displayName: 'Configure Boolector'
- script: make -j $(ncpus)
workingDirectory: 'build'
displayName: 'Build Boolector'
- script: ctest -j$(ncpus) --output-on-failure
workingDirectory: 'build'
displayName: 'Run CTest'
- template: pypi/azure-pipelines-pypi.yml