-
Notifications
You must be signed in to change notification settings - Fork 55
/
azure-pipelines.yml
62 lines (57 loc) · 1.98 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
trigger:
branches:
include:
- master
tags:
include:
- '*'
paths:
exclude:
- '.github'
variables:
BUILDDIR: "$(Build.SourcesDirectory)/build"
CONFIG: release
CCACHE_DIR: "$(Build.SourcesDirectory)/.ccache/$(Agent.OS)-$(CONFIG)"
VERA: false
TRANSLATIONS: false
jobs:
- job: Build
strategy:
matrix:
Linux release:
imageName: 'ubuntu-latest'
QMAKE_EXTRA: "CONFIG+=tests CONFIG+=ccache CONFIG+=force_debug_info CONFIG+=sanitize_undefined CONFIG+=trik_not_brick CONFIG+=sanitizer"
Linux debug:
imageName: 'ubuntu-latest'
CONFIG: debug
VERA: true
TRANSLATIONS: true
QMAKE_EXTRA: "CONFIG+=trik_not_brick CONFIG+=tests CONFIG+=precompile_header CONFIG+=sanitize_address CONFIG+=sanitize_undefined CONFIG+=sanitizer"
macOs release:
imageName: 'macOS-12'
QMAKE_EXTRA: "CONFIG+=trik_not_brick CONFIG+=tests CONFIG+=precompile_header CONFIG+=sanitize_address CONFIG+=sanitize_undefined CONFIG+=sanitizer CONFIG+=force_debug_info CONFIG+=trik_nopython"
TRIK_PYTHON3_VERSION_MINOR: 10
TRIK_QT_VERSION: 5.12
pool:
vmImage: $(imageName)
steps:
- checkout: self
fetchDepth: 100
submodules: recursive
- bash: scripts/azure/install_$(Agent.OS).sh
displayName: Set up the environment
- task: Cache@2
inputs:
key: '"ccache-$(Agent.OS)-$(CONFIG)" | "$(Build.SourceVersion)" | "$(QMAKE_EXTRA)"'
path: $(CCACHE_DIR)
restoreKeys: |
"ccache-$(Agent.OS)-$(CONFIG)" | "$(Build.SourceVersion)" | "$(QMAKE_EXTRA)"
"ccache-$(Agent.OS)-$(CONFIG)" | "$(Build.SourceVersion)"
"ccache-$(Agent.OS)-$(CONFIG)" | "$(QMAKE_EXTRA)"
"ccache-$(Agent.OS)-$(CONFIG)"
displayName: Process caches
- bash: scripts/azure/script.sh
displayName: Build
timeoutInMinutes: 25
- bash: scripts/azure/after_script.sh
displayName: After script