Skip to content

Commit 31ec7f9

Browse files
committed
CI: use matrix for the OCaml version
Checking that the parsing works well using `gh extensions act -l`
1 parent 28555f1 commit 31ec7f9

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ env:
1818
OPENMINA_PANIC_ON_BUG: true
1919
CARGO_INCREMENTAL: 1
2020
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off"
21-
OCAML_VERSION: "4.14.2"
2221

2322
concurrency:
2423
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -144,6 +143,7 @@ jobs:
144143
fail-fast: false # Allow other platforms to continue if one fails
145144
matrix:
146145
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-latest]
146+
ocaml_version: [4.14.2]
147147
runs-on: ${{ matrix.os }}
148148
steps:
149149
- name: Git checkout
@@ -155,7 +155,7 @@ jobs:
155155
- name: Use shared OCaml setting up steps
156156
uses: ./.github/actions/setup-ocaml
157157
with:
158-
ocaml_version: ${{ OCAML_VERSION }}
158+
ocaml_version: ${{ matrix.ocaml_version }}
159159

160160
- name: Setup Rust
161161
uses: ./.github/actions/setup-rust
@@ -193,7 +193,7 @@ jobs:
193193
- name: Use shared OCaml setting up steps
194194
uses: ./.github/actions/setup-ocaml
195195
with:
196-
ocaml_version: ${{ OCAML_VERSION }}
196+
ocaml_version: ${{ matrix.ocaml_version }}
197197

198198
- name: Setup WebAssembly environment
199199
uses: ./.github/actions/setup-wasm
@@ -222,7 +222,7 @@ jobs:
222222
- name: Use shared OCaml setting up steps
223223
uses: ./.github/actions/setup-ocaml
224224
with:
225-
ocaml_version: ${{ OCAML_VERSION }}
225+
ocaml_version: ${{ matrix.ocaml_version }}
226226

227227
- name: Setup Rust
228228
uses: ./.github/actions/setup-rust
@@ -260,7 +260,7 @@ jobs:
260260
- name: Use shared OCaml setting up steps
261261
uses: ./.github/actions/ocaml-shared
262262
with:
263-
ocaml_version: ${{ OCAML_VERSION }}
263+
ocaml_version: ${{ matrix.ocaml_version }}
264264

265265
- name: Setup Rust
266266
uses: ./.github/actions/setup-rust

.github/workflows/lint.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ on:
55
branches: [ main, develop ]
66
pull_request:
77

8-
env:
9-
OCAML_VERSION: "4.14.2"
10-
118
jobs:
129
lint:
1310
timeout-minutes: 10
1411
name: Lint - ${{ matrix.os }} - Rust ${{ matrix.toolchain }}
1512
runs-on: ${{ matrix.os }}
1613
strategy:
1714
matrix:
15+
ocaml_version: [4.14.2]
1816
os: [ubuntu-24.04]
1917
toolchain: [1.84]
2018
steps:
@@ -26,7 +24,7 @@ jobs:
2624
- name: Use shared OCaml setting up steps
2725
uses: ./.github/actions/setup-ocaml
2826
with:
29-
ocaml_version: ${{ OCAML_VERSION }}
27+
ocaml_version: ${{ matrix.ocaml_version }}
3028
- name: Setup SQLite database for SQLx
3129
run: |
3230
sqlite3 /tmp/heartbeats.db < tools/heartbeats-processor/schema.sql

0 commit comments

Comments
 (0)