-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yaml
42 lines (42 loc) · 1.37 KB
/
azure-pipelines.yaml
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
stages:
- stage: Build
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: self
submodules: 'recursive'
- script: chmod +x utils/premake5 && utils/premake5 gmake
displayName: 'Generate Makefile'
- script: cd Build && make -j 3 CXX=g++-7 CC=gcc-7 config=release_x64
displayName: 'Build project'
- script: mv $(Build.SourcesDirectory)/Bin/Release/libml_redis.so $(Build.SourcesDirectory)/Bin/Release/ml_redis.so
- publish: '$(Build.SourcesDirectory)/Bin/Release/ml_redis.so'
artifact: 'ml_redis_linux'
- job: Windows
pool:
vmImage: 'windows-2019'
strategy:
maxParallel: 2
matrix:
Win32:
platform: 'win32'
x64:
platform: 'x64'
variables:
solution: 'Build/Redis.sln'
buildConfiguration: 'Release'
steps:
- checkout: self
submodules: 'recursive'
- script: utils\premake5 vs2019
displayName: 'Create Visual Studio 2019 Solution'
- task: VSBuild@1
inputs:
solution: '$(solution)'
configuration: '$(buildConfiguration)'
platform: '$(platform)'
- script: move /Y $(Build.SourcesDirectory)\Bin\Release\ml_redis.dll $(Build.SourcesDirectory)\Bin\Release\ml_redis_$(platform).dll
- publish: '$(Build.SourcesDirectory)\Bin\Release\ml_redis_$(platform).dll'
artifact: 'ml_redis_$(platform)'