-
Notifications
You must be signed in to change notification settings - Fork 8
/
azure-pipelines.yml
53 lines (49 loc) · 1.37 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
# 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:
- master
- refs/tags/*
strategy:
matrix:
mac:
imageName: 'macos-10.13'
target: "x86_64-apple-darwin"
linux-amd64:
imageName: 'ubuntu-16.04'
target: "x86_64-unknown-linux-musl"
linux-arm64:
imageName: 'ubuntu-16.04'
target: "aarch64-unknown-linux-gnu"
linux-armhf:
imageName: 'ubuntu-16.04'
target: "armv7-unknown-linux-musleabihf"
windows:
imageName: 'ubuntu-16.04'
target: "x86_64-pc-windows-gnu"
pool:
vmImage: $(imageName)
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
displayName: Install rust
- task: Bash@3
displayName: Build Project
inputs:
targetType: filePath
noRc: false
filePath: ./ci/publish.sh
- task: GitHubRelease@0
displayName: Create Github Release
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
inputs:
gitHubConnection: release
repositoryName: '$(Build.Repository.Name)'
action: 'edit'
target: '$(Build.SourceVersion)'
tagSource: 'manual'
tag: $(GIT_TAG)
assets: $(Build.SourcesDirectory)/target/releases/*
assetUploadMode: replace