1
1
name : Openmina CI
2
2
on :
3
3
push :
4
- branches : [ main, develop ]
4
+ branches : [main, develop]
5
5
pull_request :
6
- paths-ignore : [ "frontend" ]
6
+ paths-ignore : ["frontend"]
7
7
workflow_dispatch :
8
8
inputs :
9
9
refresh_cache :
10
- description : ' Refresh cargo cache'
10
+ description : " Refresh cargo cache"
11
11
required : false
12
12
type : boolean
13
13
default : false
18
18
OPENMINA_PANIC_ON_BUG : true
19
19
CARGO_INCREMENTAL : 1
20
20
RUSTFLAGS : " -C overflow-checks=off -C debug-assertions=off"
21
+ OCAML_VERSION : " 4.14.2"
21
22
22
23
concurrency :
23
24
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -140,7 +141,7 @@ jobs:
140
141
# NOTE: If you add or remove platforms from this matrix, make sure to update
141
142
# the documentation at website/docs/developers/getting-started.mdx
142
143
strategy :
143
- fail-fast : false # Allow other platforms to continue if one fails
144
+ fail-fast : false # Allow other platforms to continue if one fails
144
145
matrix :
145
146
os : [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-latest]
146
147
runs-on : ${{ matrix.os }}
@@ -151,6 +152,11 @@ jobs:
151
152
- name : Setup build dependencies
152
153
uses : ./.github/actions/setup-build-deps
153
154
155
+ - name : Use shared OCaml setting up steps
156
+ uses : ./.github/actions/setup-ocaml
157
+ with :
158
+ ocaml_version : ${{ OCAML_VERSION }}
159
+
154
160
- name : Setup Rust
155
161
uses : ./.github/actions/setup-rust
156
162
with :
@@ -173,7 +179,7 @@ jobs:
173
179
# NOTE: If you add or remove platforms from this matrix, make sure to update
174
180
# the documentation at website/docs/developers/getting-started.mdx
175
181
strategy :
176
- fail-fast : false # Allow other platforms to continue if one fails
182
+ fail-fast : false # Allow other platforms to continue if one fails
177
183
matrix :
178
184
os : [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-latest]
179
185
runs-on : ${{ matrix.os }}
@@ -184,6 +190,11 @@ jobs:
184
190
- name : Setup build dependencies
185
191
uses : ./.github/actions/setup-build-deps
186
192
193
+ - name : Use shared OCaml setting up steps
194
+ uses : ./.github/actions/setup-ocaml
195
+ with :
196
+ ocaml_version : ${{ OCAML_VERSION }}
197
+
187
198
- name : Setup WebAssembly environment
188
199
uses : ./.github/actions/setup-wasm
189
200
with :
@@ -197,7 +208,7 @@ jobs:
197
208
# NOTE: If you add or remove platforms from this matrix, make sure to update
198
209
# the documentation at website/docs/developers/getting-started.mdx
199
210
strategy :
200
- fail-fast : false # Allow other platforms to continue if one fails
211
+ fail-fast : false # Allow other platforms to continue if one fails
201
212
matrix :
202
213
os : [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-latest]
203
214
runs-on : ${{ matrix.os }}
@@ -208,6 +219,11 @@ jobs:
208
219
- name : Setup build dependencies
209
220
uses : ./.github/actions/setup-build-deps
210
221
222
+ - name : Use shared OCaml setting up steps
223
+ uses : ./.github/actions/setup-ocaml
224
+ with :
225
+ ocaml_version : ${{ OCAML_VERSION }}
226
+
211
227
- name : Setup Rust
212
228
uses : ./.github/actions/setup-rust
213
229
with :
@@ -230,7 +246,7 @@ jobs:
230
246
# NOTE: If you add or remove platforms from this matrix, make sure to update
231
247
# the documentation at website/docs/developers/getting-started.mdx
232
248
strategy :
233
- fail-fast : false # Allow other platforms to continue if one fails
249
+ fail-fast : false # Allow other platforms to continue if one fails
234
250
matrix :
235
251
os : [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-latest]
236
252
runs-on : ${{ matrix.os }}
@@ -241,6 +257,11 @@ jobs:
241
257
- name : Setup build dependencies
242
258
uses : ./.github/actions/setup-build-deps
243
259
260
+ - name : Use shared OCaml setting up steps
261
+ uses : ./.github/actions/ocaml-shared
262
+ with :
263
+ ocaml_version : ${{ OCAML_VERSION }}
264
+
244
265
- name : Setup Rust
245
266
uses : ./.github/actions/setup-rust
246
267
with :
@@ -259,7 +280,7 @@ jobs:
259
280
retention-days : 7
260
281
261
282
p2p-scenario-tests :
262
- needs : [ build-tests, build-tests-webrtc ]
283
+ needs : [build-tests, build-tests-webrtc]
263
284
runs-on : ubuntu-24.04
264
285
timeout-minutes : 20
265
286
container :
@@ -269,8 +290,15 @@ jobs:
269
290
BPF_ALIAS : /coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
270
291
strategy :
271
292
matrix :
272
- test : [p2p_basic_connections, p2p_basic_incoming, p2p_basic_outgoing, p2p_pubsub, p2p_kad,
273
- webrtc_p2p_basic_connections]
293
+ test :
294
+ [
295
+ p2p_basic_connections,
296
+ p2p_basic_incoming,
297
+ p2p_basic_outgoing,
298
+ p2p_pubsub,
299
+ p2p_kad,
300
+ webrtc_p2p_basic_connections,
301
+ ]
274
302
fail-fast : false
275
303
276
304
services :
@@ -288,10 +316,10 @@ jobs:
288
316
steps :
289
317
- name : Install libssl3t64 # Our binaries are built on a newer ubuntu and require libssl3t64
290
318
run : |
291
- apt-get update && \
292
- apt-get install -y --no-install-recommends libssl3t64 && \
293
- apt-get clean && \
294
- rm -rf /var/lib/apt/lists/*
319
+ apt-get update && \
320
+ apt-get install -y --no-install-recommends libssl3t64 && \
321
+ apt-get clean && \
322
+ rm -rf /var/lib/apt/lists/*
295
323
296
324
- name : Download tests
297
325
uses : actions/download-artifact@v4
@@ -369,10 +397,10 @@ jobs:
369
397
steps :
370
398
- name : Install libssl3t64 # Our binaries are built on a newer ubuntu and require libssl3t64
371
399
run : |
372
- apt-get update && \
373
- apt-get install -y --no-install-recommends libssl3t64 && \
374
- apt-get clean && \
375
- rm -rf /var/lib/apt/lists/*
400
+ apt-get update && \
401
+ apt-get install -y --no-install-recommends libssl3t64 && \
402
+ apt-get clean && \
403
+ rm -rf /var/lib/apt/lists/*
376
404
377
405
- name : Download tests
378
406
uses : actions/download-artifact@v4
@@ -426,10 +454,10 @@ jobs:
426
454
steps :
427
455
- name : Install libssl3t64 # Our binaries are built on a newer ubuntu and require libssl3t64
428
456
run : |
429
- apt-get update && \
430
- apt-get install -y --no-install-recommends libssl3t64 && \
431
- apt-get clean && \
432
- rm -rf /var/lib/apt/lists/*
457
+ apt-get update && \
458
+ apt-get install -y --no-install-recommends libssl3t64 && \
459
+ apt-get clean && \
460
+ rm -rf /var/lib/apt/lists/*
433
461
434
462
- name : Download tests
435
463
uses : actions/download-artifact@v4
@@ -447,7 +475,7 @@ jobs:
447
475
448
476
bootstrap-test :
449
477
timeout-minutes : 4
450
- needs : [ build, build-tests ]
478
+ needs : [build, build-tests]
451
479
runs-on : ubuntu-24.04
452
480
env :
453
481
OPENMINA_HOME : data
0 commit comments