forked from smasherprog/screen_capture_lite
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
47 lines (45 loc) · 1.3 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
trigger:
- master
pr:
- master
variables:
isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
jobs:
- job: createrelease
pool:
vmImage: windows-latest
steps:
- task: GitHubRelease@1
condition: and(succeeded(), eq(variables.isMain, true))
inputs:
gitHubConnection: 'smasherprog'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: '17.1.$(Build.BuildId)'
releaseNotesFilePath: 'releasenotes.txt'
isPreRelease: true
addChangeLog: false
- template: azure-devops/build-windows.yml
parameters:
name: 'Windows_VS2019_x86'
targetPlatform: Win32
image: 'windows-latest'
- template: azure-devops/build-windows.yml
parameters:
name: 'Windows_VS2019_x64'
targetPlatform: x64
image: 'windows-latest'
- job: mac_build
pool:
vmImage: 'macOS-latest'
steps:
- script: cmake . && make;
- job: ubuntu_build
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo apt install -y libx11-dev libxfixes-dev libxtst-dev libxinerama-dev libxrandr-dev libxcursor-dev
CXX=clang++ CC=clang cmake . && make;