-
Notifications
You must be signed in to change notification settings - Fork 4
277 lines (232 loc) · 7.26 KB
/
ci.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
name: CI
on:
push:
branches: [master, dev]
tags: ["v*.*.*"]
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
basic:
name: "Rust"
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: Rust Version Info
run: |
cargo version
rustc --version
cargo clippy --version
- name: Format
run: cargo +nightly fmt --all -- --check -q
- uses: actions-rs/cargo@v1
name: Build
with:
command: build
args: --locked --release --all-targets --all-features -q
- uses: actions-rs/cargo@v1
name: Build (Tests)
with:
command: test
args: --locked --no-run --release --all-targets -q
- uses: actions-rs/cargo@v1
name: Clippy
with:
command: clippy
args: --locked --release --all-targets --all-features -q -- -D warnings
- uses: actions-rs/cargo@v1
name: Documentation
with:
command: doc
args: --locked --release --no-deps --all-features -q
- uses: actions-rs/cargo@v1
name: Test
with:
command: test
args: --locked --release --all-targets -q # no --all-features
- uses: actions-rs/cargo@v1
name: Doc Test
with:
command: test
args: --locked --release --doc -q
polkadot_version_locked:
name: "Polkadot (version locked)"
needs: basic
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout Polkadot
run: |
mkdir -p repos/polkadot
cd repos/polkadot
git init
git remote add origin https://github.com/paritytech/polkadot
git fetch origin dc230b323b5baeb9b4297430ed539b208d30bf6a
git fetch origin refs/tags/v0.9.19:refs/tags/v0.9.19
git fetch origin refs/tags/v0.9.20:refs/tags/v0.9.20
git checkout dc230b323b5baeb9b4297430ed539b208d30bf6a
- uses: actions-rs/cargo@v1
name: Polkadot Tests (version locked)
with:
command: test
args: --release --all-targets --features version-locked-tests,polkadot "polkadot::"
polkadot_master:
name: "Polkadot (master)"
needs: polkadot_version_locked
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout Polkadot
run: |
mkdir -p repos/polkadot
cd repos/polkadot
git init
git remote add origin https://github.com/paritytech/polkadot
git fetch origin master
git fetch origin refs/tags/v0.9.19:refs/tags/v0.9.19
git fetch origin refs/tags/v0.9.20:refs/tags/v0.9.20
git checkout master
- uses: actions-rs/cargo@v1
name: Polkadot Tests (master)
with:
command: test
args: --release --all-targets --features version-locked-tests,polkadot "polkadot::"
substrate_version_locked:
name: "Substrate (version locked)"
needs: basic
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout Substrate
uses: actions/checkout@v3
with:
fetch-depth: 1
repository: paritytech/substrate
path: repos/substrate
ref: 1fd71c7845d6c28c532795ec79106d959dd1fe30
- uses: actions-rs/cargo@v1
name: Substrate Tests (version locked)
with:
command: test
args: --release --all-targets --features version-locked-tests,substrate "substrate::"
cumulus_version_locked:
name: "Cumulus (version locked)"
needs: basic
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout Cumulus
uses: actions/checkout@v3
with:
fetch-depth: 1
repository: paritytech/cumulus
path: repos/cumulus
ref: 530a0aaf0c8a422f708415873d1366ae4c8ea456
- uses: actions-rs/cargo@v1
name: Cumulus Tests (version locked)
with:
command: test
args: --release --all-targets --features version-locked-tests,cumulus "cumulus::"
acala_version_locked:
name: "Acala (version locked)"
needs: basic
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout Acala
uses: actions/checkout@v3
with:
fetch-depth: 1
repository: AcalaNetwork/Acala
path: repos/acala
ref: c64bb09242bbb8db46ff64a97f30331a3006875e
- uses: actions-rs/cargo@v1
name: Acala Tests (version locked)
with:
command: test
args: --release --all-targets --features version-locked-tests,acala "acala::"
astar_version_locked:
name: "Astar (version locked)"
needs: basic
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout Astar
uses: actions/checkout@v3
with:
fetch-depth: 1
repository: AstarNetwork/Astar
path: repos/astar
ref: 94a7b3f87b33f64d66123ee9acc8769c25696aa0
- uses: actions-rs/cargo@v1
name: Astar Tests (version locked)
with:
command: test
args: --release --all-targets --features version-locked-tests,astar "astar::"
moonbeam_version_locked:
name: "Moonbeam (version locked)"
needs: basic
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout Moonbeam
uses: actions/checkout@v3
with:
fetch-depth: 1
repository: PureStake/moonbeam
path: repos/moonbeam
ref: 54e40e2aa3f1f41a45a7df067a6ac6a0256cda6a
- uses: actions-rs/cargo@v1
name: Moonbeam Tests (version locked)
with:
command: test
args: --release --all-targets --features version-locked-tests,moonbeam "moonbeam::"
composable_version_locked:
name: "ComposableFI (version locked)"
needs: basic
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout ComposableFI
uses: actions/checkout@v3
with:
fetch-depth: 1
repository: ComposableFi/composable
path: repos/composable
ref: 6f407847041ea170db8ddfb4770e0492e253db1f
- uses: actions-rs/cargo@v1
name: ComposableFI Tests (version locked)
with:
command: test
args: --release --all-targets --features version-locked-tests,composable "composable::"