From 584a3020fb8d5e41c0dd3219e47c38f50d636102 Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Tue, 24 Oct 2023 22:03:14 +0200 Subject: [PATCH 1/2] feat: compatibility with OTP 26 fixes #13 --- .github/workflows/erlang.yml | 2 +- c_src/Makefile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index 39d8bf5..8df8335 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - otp: [23.2.5, 22.3.4.16, 21.3.8.21, 20.3.8.26] + otp: [26.1.1, 25.3.2, 24.3.4, 23.2.5, 22.3.4.16, 21.3.8.21, 20.3.8.26] container: image: erlang:${{ matrix.otp }} diff --git a/c_src/Makefile b/c_src/Makefile index ba48422..f7c06d4 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -6,9 +6,9 @@ BASEDIR := $(abspath $(CURDIR)/..) PROJECT ?= $(notdir $(BASEDIR)) PROJECT := $(strip $(PROJECT)) -ERTS_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~ts/erts-~ts/include/\", [code:root_dir(), erlang:system_info(version)]).") -ERL_INTERFACE_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~ts\", [code:lib_dir(erl_interface, include)]).") -ERL_INTERFACE_LIB_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~ts\", [code:lib_dir(erl_interface, lib)]).") +ERTS_INCLUDE_DIR ?= $(shell erl -noshell -eval "io:format(\"~ts/erts-~ts/include/\", [code:root_dir(), erlang:system_info(version)]), erlang:halt().") +ERL_INTERFACE_INCLUDE_DIR ?= $(shell erl -noshell -eval "io:format(\"~ts\", [code:lib_dir(erl_interface, include)]), erlang:halt().") +ERL_INTERFACE_LIB_DIR ?= $(shell erl -noshell -eval "io:format(\"~ts\", [code:lib_dir(erl_interface, lib)]), erlang:halt().") C_SRC_DIR = $(CURDIR) C_SRC_OUTPUT ?= $(CURDIR)/../priv/$(PROJECT)_nif.so From a4defa8d227e5de4c783b42fcda5b74fbe598cac Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Tue, 24 Oct 2023 22:03:55 +0200 Subject: [PATCH 2/2] docs: enable hex docs --- rebar.config | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index c377e8c..14730ee 100644 --- a/rebar.config +++ b/rebar.config @@ -8,4 +8,12 @@ [{"(linux|darwin|solaris)", clean, "make -C c_src clean"}, {"(freebsd)", clean, "gmake -C c_src clean"}]}. -{plugins, [rebar3_hex]}. \ No newline at end of file +{plugins, [rebar3_hex]}. + +{ex_doc, [ + {source_url, <<"https://github.com/kafka4beam/lz4b">>}, + {extras, [<<"README.md">>, <<"LICENSE">>]}, + {main, <<"readme">>} +]}. + +{hex, [{doc, ex_doc}]}.