forked from serenity-rs/serenity
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-build-examples.yml
100 lines (86 loc) · 2.61 KB
/
azure-build-examples.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
parameters:
name: ''
vmImage: ''
toolchain: 'stable'
features: 'all'
jobs:
- job: ${{ parameters.name }}
pool:
vmImage: ${{ parameters.vmImage }}
variables:
tc: ${{ parameters.toolchain }}
os: ${{ parameters.vmImage }}
features: ${{ parameters.features }}
steps:
- bash: |
if [[ "$OS" == "xcode9-macos10.13" ]]; then
HOMEBREW_NO_AUTO_UPDATE=1 brew install automake autoconf libtool libsodium pkg-config
fi
if [[ "$OS" == "ubuntu-16.04" ]]; then
sudo apt-get install -y --allow-downgrades libsodium-dev libssl-dev=1.0.2g-1ubuntu4.15
fi
displayName: 'Install dependencies'
- bash: |
curl -o rustup-init.sh https://sh.rustup.rs -sSf
sh rustup-init.sh --default-toolchain $(tc) -y
displayName: 'Install Rust'
- bash: |
source $HOME/.cargo/env
cd examples/01_basic_ping_bot
CARGO_TARGET_DIR='..' cargo build
displayName: 'Build example 1'
- bash: |
source $HOME/.cargo/env
cd examples/02_transparent_guild_sharding
CARGO_TARGET_DIR='..' cargo build
displayName: 'Build example 2'
- bash: |
source $HOME/.cargo/env
cd examples/03_struct_utilities
CARGO_TARGET_DIR='..' cargo build
displayName: 'Build example 3'
- bash: |
source $HOME/.cargo/env
cd examples/04_message_builder
CARGO_TARGET_DIR='..' cargo build
displayName: 'Build example 4'
- bash: |
source $HOME/.cargo/env
cd examples/05_command_framework
CARGO_TARGET_DIR='..' cargo build
displayName: 'Build example 5'
- bash: |
source $HOME/.cargo/env
cd examples/06_voice
CARGO_TARGET_DIR='..' cargo build
displayName: 'Build example 6'
- bash: |
source $HOME/.cargo/env
cd examples/07_sample_bot_structure
CARGO_TARGET_DIR='..' cargo build
displayName: 'Build example 7'
- bash: |
source $HOME/.cargo/env
CARGO_TARGET_DIR='..' cd examples/08_env_logging
cargo build
displayName: 'Build example 8'
- bash: |
source $HOME/.cargo/env
CARGO_TARGET_DIR='..' cd examples/09_shard_manager
cargo build
displayName: 'Build example 9'
- bash: |
source $HOME/.cargo/env
CARGO_TARGET_DIR='..' cd examples/10_voice_receive
cargo build
displayName: 'Build example 10'
- bash: |
source $HOME/.cargo/env
CARGO_TARGET_DIR='..' cd examples/11_crate_message_builder
cargo build
displayName: 'Build example 11'
- bash: |
source $HOME/.cargo/env
CARGO_TARGET_DIR='..' cd examples/12_timing_and_events
cargo build
displayName: 'Build example 12'