forked from sushiibot/sushii-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
38 lines (31 loc) · 1.01 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
# 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
pool:
vmImage: 'Ubuntu 16.04'
steps:
- script: |
curl -o rustup-init.sh https://sh.rustup.rs -sSf
sh rustup-init.sh -y
displayName: 'Install Rust'
- script: |
sudo apt-get install libpq-dev -y
displayName: 'Install Dependencies'
- script: |
echo 'Agent ID $(Agent.Id)'
echo 'Agent Name $(Agent.Name)'
echo 'Agent MachineName $(Agent.MachineName)'
echo 'Agent OS $(Agent.OS)'
echo 'Build ID $(Build.BuildId)'
echo 'Build Number $(Build.BuildNumber)'
displayName: 'Print Info'
- script: |
source $HOME/.cargo/env
cargo build --release
displayName: 'Build sushii'
- task: PublishBuildArtifacts@1
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
pathtoPublish: 'target/release/sushii'
artifactName: 'sushii-$(Build.BuildNumber)-$(Agent.OS)'