-
Notifications
You must be signed in to change notification settings - Fork 76
/
azure-pipelines.yml
57 lines (57 loc) · 1.92 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
jobs:
- job: BuildTemplate
variables:
toolchain_update: 10.3-2021.10
toolchain: https://developer.arm.com/-/media/Files/downloads/gnu-rm/$(toolchain_update)/gcc-arm-none-eabi-$(toolchain_update)-x86_64-linux.tar.bz2
pool:
vmImage: 'ubuntu-latest'
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)/bin"
displayName: Install gcc-arm-embedded
- task: UsePythonVersion@0
inputs:
addToPath: true
versionSpec: '3.9'
- task: PipAuthenticate@1
inputs:
artifactFeeds: 'pros-cli'
# use official PyPi registry first and fall back to internal feed as needed
onlyAddExtraIndex: true
- bash: pip install pros-cli
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')))