-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines.yml
58 lines (52 loc) · 1.13 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
trigger:
- main
pr:
- main
# File: azure-pipelines.yml
jobs:
- job: macOS_Catalina_Debug
pool:
vmImage: 'macOS-10.15'
steps:
- script: |
brew update
brew install bison
displayName: 'package'
- script: |
export PATH="/usr/local/opt/bison/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/bison/lib"
mkdir -p build
cd build
cmake ..
cmake --build .
displayName: 'build'
- job: Linux
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: |
sudo apt-get update
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install libfl-dev
displayName: 'package'
- script: |
mkdir -p build
cd build
cmake ..
cmake --build .
displayName: 'build'
- job: Windows
pool:
vmImage: 'windows-latest'
steps:
- script: |
choco install winflexbison3
dir %ProgramData%\\chocolatey\\lib\\winflexbison3\\tools
displayName: 'package'
- script: |
md build
cd build
cmake .. -DFLEXLEXER_INCLUDE_PATH=c:\ProgramData\chocolatey\lib\winflexbison3\tools\
cmake --build .
displayName: 'build'