ocaml-opentelemetry/Makefile
Simon Cruanes 5031be8d91
use docker images for CI (#130)
* use docker images for CI

* run gha as root in docker

using the opam user wouldn't work for actions like checkout

* make our own docker images from ubuntu LTS

* details

* fix eio step

* fix build issues in docker
2026-04-06 15:47:16 -04:00

45 lines
943 B
Makefile

OPTS=--profile=release --ignore-promoted-rules
all:
@dune build @all $(OPTS)
test:
@dune runtest --force $(OPTS)
clean:
@dune clean
protoc-gen:
FORCE_GENPROTO=true dune build @lint
update-submodules:
git submodule update --init
doc:
@dune build @doc
PACKAGES=$(shell opam show . -f name)
odig-doc:
@odig odoc --cache-dir=_doc/ $(PACKAGES)
format:
@dune build @fmt --auto-promote
format-check:
@dune build $(DUNE_OPTS) @fmt --display=quiet
setup-githooks:
uvx pre-commit install --hook-type pre-push
WATCH ?= @all
watch:
@dune build $(WATCH) -w $(OPTS)
include deps/Makefile.ci
VERSION=$(shell awk '/^version:/ {print $$2}' opentelemetry.opam)
update_next_tag:
@echo "update version to $(VERSION)..."
sed -i "s/NEXT_VERSION/$(VERSION)/g" $(wildcard src/**/*.ml) $(wildcard src/**/*.mli)
sed -i "s/NEXT_RELEASE/$(VERSION)/g" $(wildcard src/*.ml) $(wildcard src/**/*.ml) $(wildcard src/*.mli) $(wildcard src/**/*.mli)