forked from purduesigbots/pros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
56 lines (56 loc) · 1.87 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
jobs:
- job: BuildTemplate
variables:
toolchain_update_short: 8-2019q3
toolchain_update: 8-2019-q3
toolchain: https://developer.arm.com/-/media/Files/downloads/gnu-rm/$(toolchain_update_short)/RC1.1/gcc-arm-none-eabi-$(toolchain_update)-update-linux.tar.bz2
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: InstallSSHKey@0
inputs:
sshKeySecureFile: id_sigbot_github_azure_devops
hostName: $(gh.knownhosts)
sshPublicKey: $(gh.publickey)
- checkout: self
- bash: |
curl -LSso toolchain.tar.bz2 $(toolchain)
tar -xjvf toolchain.tar.bz2
echo "##vso[task.prependpath]$(pwd)/gcc-arm-none-eabi-$(toolchain_update)-update/bin"
displayName: Install gcc-arm-embedded
- task: UsePythonVersion@0
inputs:
addToPath: true
versionSpec: '3.6'
- task: PipAuthenticate@0
inputs:
artifactFeeds: 'pros-cli'
- bash: pip install pros-cli-v5
displayName: Install CLI
- bash: |
make template
mkdir -p artifacts
cp template/*.zip artifacts
displayName: Build template
- bash: |
echo "##vso[build.UpdateBuildNumber]`cat version`"
echo "##vso[task.setvariable variable=KernelVersion]`cat version`"
displayName: Update Build Number
- bash: |
make
displayName: Build binaries
- task: PublishPipelineArtifact@0
inputs:
targetPath: artifacts
artifactName: template
condition: succeeded()
# - task: UniversalPackages@0
# inputs:
# command: publish
# publishDirectory: artifacts
# vstsFeedPublish: 'pros-depot-nightly'
# vstsFeedPackagePublish: 'kernel'
# versionOption: custom
# versionPublish: $(KernelVersion)
# packagePublishDescription: 'CI Build of Kernel'
# condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop')))