-
Notifications
You must be signed in to change notification settings - Fork 35
/
azure-pipelines.yml
75 lines (70 loc) · 2.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Only trigger CI builds for the master branch, instead
# of every branch. You'll automatically be configured to
# build PRs, but you can't currently control that from the YAML directly
# For details, see https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers
trigger:
- develop
# We can run multiple jobs in parallel. For this project
# I'm running Linux, Windows, and macOS jobs. For syntac details
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases
jobs:
# Run a build on Windows at the same time
- job: Windows
timeoutInMinutes: 80
pool:
vmImage: 'windows-2022'
# The Windows build involves running a powershell script
# to execute the Cake build script
steps:
- powershell: gci env:* | sort-object name | Format-Table -AutoSize
- powershell:
env:
COREHOST_TRACE: 0
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- script: |
pip install requests
python --version
python build.py --config=Release --packageType="Remote"
- task: PublishBuildArtifacts@1
inputs:
artifactName: 'Installers'
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
# # artifactName: 'Cabbage64Setup.exe'
- job: macOS
timeoutInMinutes: 100
pool:
vmImage: 'macOS-12'
steps:
- script: |
pip install requests
python --version
python build.py --config=Release --packageType="Remote"
displayName: "Building..."
env:
COREHOST_TRACE: 0
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- task: PublishBuildArtifacts@1
inputs:
artifactName: 'Installers'
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
# # artifactName: '${SYSTEM_DEFAULTWORKINGDIRECTORY}/Cabbage.pkg'
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo apt-get install ninja-build
pip install requests
python --version
python build.py --config=Release --installLinuxDeps=True --packageType="Remote"
env:
COREHOST_TRACE: 0
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- task: PublishBuildArtifacts@1
inputs:
artifactName: 'Installers'
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
# artifactName: '${SYSTEM_DEFAULTWORKINGDIRECTORY}/Cabbage.pkg'