Skip to content

Commit

Permalink
Switch to release binary and makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannaegele committed Jul 26, 2024
1 parent aeea23b commit 9943a06
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 132 deletions.
1 change: 1 addition & 0 deletions apps/opentelemetry_semantic_conventions/.tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
elixir 1.16.2
rust 1.79.0
132 changes: 0 additions & 132 deletions apps/opentelemetry_semantic_conventions/generate.exs

This file was deleted.

33 changes: 33 additions & 0 deletions apps/opentelemetry_semantic_conventions/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
SEMCON_VERSION = 1.26.0

.PHONY: setup clean checkout generate

clean:
rm -rf semtmp
rm -rf guides/

setup:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/open-telemetry/weaver/releases/download/v0.7.0/weaver-installer.sh | sh

checkout:
mkdir semtmp
git clone https://github.com/open-telemetry/semantic-conventions.git semtmp
cd semtmp; \
git checkout v$(SEMCON_VERSION) && \
cp -r docs ../guides
rm -rf guides/docs

generate: generate-elixir generate-erlang format-and-test

generate-elixir:
weaver registry generate --registry=semtmp/model --templates=templates --param output=lib/ --param stability=stable elixir .
weaver registry generate --registry=semtmp/model --templates=templates --param output=lib/incubating/ --param stability=experimental elixir .

generate-erlang:
weaver registry generate --registry=semtmp/model --templates=templates --param output=include/ --param stability=stable erlang .
weaver registry generate --registry=semtmp/model --templates=templates --param output=include/incubating/ --param stability=experimental erlang .

format-and-test:
mix format
mix docs
mix test

0 comments on commit 9943a06

Please sign in to comment.