forked from csound/csound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
75 lines (62 loc) · 2.45 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- develop
pool:
vmImage: 'ubuntu-latest'
variables:
emscripten_container_name : 'csound_emscripten_build_run'
emscripten_zip_path : '/csound/Emscripten/'
emscripten_artifact : 'Csound6.13.0-Web.zip'
emscripten_docker_image: 'sjamble/csound_emscripten'
android_container_name : 'csound_android_build_run'
android_zip_path : '/csound/Android/'
android_artifact : 'Csound6.13.0-Android.zip'
android_docker_image: 'sjamble/csound_android'
jobs:
- job: "Emscripten_Build"
steps:
- script: |
sudo apt-get install docker -y
displayName: Setting up docker cli
- script: |
sudo docker run --name $(emscripten_container_name) -i $(emscripten_docker_image)
displayName: Building the Csound emscripten build
- script: |
sudo docker cp $(emscripten_container_name):$(emscripten_zip_path)$(emscripten_artifact) $(System.DefaultWorkingDirectory)/
displayName: Extracting web build file from docker image
- task: PublishPipelineArtifact@1
inputs:
path: $(System.DefaultWorkingDirectory)/$(emscripten_artifact)
artifact: Csound6.13.0-WEB
- job: Android_Build
steps:
- script: |
sudo apt-get install docker -y
displayName: Setting up docker cli
- script: |
sudo docker run --name $(android_container_name) -i $(android_docker_image)
displayName: Building the Csound Android build
- script: |
sudo docker cp $(android_container_name):$(android_zip_path)$(android_artifact) $(System.DefaultWorkingDirectory)/
displayName: Extracting android build file from docker image
- task: PublishPipelineArtifact@1
inputs:
path: $(System.DefaultWorkingDirectory)/$(android_artifact)
artifact: Csound6.13.0-ANDROID
- job: macOS
pool:
vmImage: 'macos-10.13'
xcodeVersion: '9.4.1'
steps:
- bash: cd $AGENT_BUILDDIRECTORY/s/installer/macosx;chmod 777 release-build-azure.sh;./release-build-azure.sh develop
env:
COREHOST_TRACE: 0
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
# artifactName: '$AGENT_BUILDDIRECTORY/s/csoundBuildDir/CsoundOSXBinaries.zip'