From dda9045ba3dc04de3bbd21d21f7c359782a9526e Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Thu, 2 Jul 2026 21:36:12 +0300 Subject: T9044: build committed protobuf bindings, skip regeneration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add --ignore-promoted-rules to the CI dune build/runtest steps so the committed src/*_pbt.ml (ocaml-protoc 2.x output) are used instead of re-running the codegen rule. This matches how the package builds under opam (dune build -p implies the same flag), avoiding both the 2.4 CLI mismatch (--ml_out vs -ml_out) and 3.x's incompatible private-record API. 🤖 Generated by [robots](https://vyos.io) --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a8537a..4732f2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,8 +58,13 @@ jobs: - name: Install dependencies run: opam install . --deps-only --with-test --yes + # --ignore-promoted-rules uses the committed src/*_pbt.ml instead of + # re-running the ocaml-protoc codegen (a (mode promote) rule). This is + # how the package is built via opam (`dune build -p` implies the same + # flag), so CI matches: the committed 2.x-generated bindings are used and + # ocaml-protoc is not invoked for codegen. - name: Build - run: opam exec -- dune build + run: opam exec -- dune build --ignore-promoted-rules - name: Run tests - run: opam exec -- dune runtest + run: opam exec -- dune runtest --ignore-promoted-rules -- cgit v1.2.3