forked from NeighTools/UnityDoorstop.Unix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (42 loc) · 1.35 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
trigger:
- master
jobs:
- job: LinuxBuild
displayName: 'Build Linux'
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo apt-get update;
sudo apt-get -y install gcc-multilib
displayName: 'getting deps'
- script: |
make
displayName: 'make'
- script: |
zip -r $(Build.SourcesDirectory)/doorstop_linux_$(Build.BuildId).zip *.so
displayName: 'Package files'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/doorstop_linux_$(Build.BuildId).zip'
ArtifactName: 'doorstop_linux'
publishLocation: 'Container'
- job: MacOSBuild # x86 is not allowed on 10.14+ anymore
displayName: 'Build MacOS'
pool:
vmImage: 'macOS-10.14'
steps:
- script: |
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
displayName: 'Install macOS SDK Headers'
- script: |
make
displayName: 'make'
- script: |
zip -r $(Build.SourcesDirectory)/doorstop_macos_$(Build.BuildId).zip *.dylib
displayName: 'Package files'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/doorstop_macos_$(Build.BuildId).zip'
ArtifactName: 'doorstop_macos'
publishLocation: 'Container'