-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to release binary and makefile
- Loading branch information
1 parent
aeea23b
commit 9943a06
Showing
3 changed files
with
34 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
elixir 1.16.2 | ||
rust 1.79.0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |