Skip to content

Commit

Permalink
Merge pull request #14 from kafka4beam/1024-otp26-compat
Browse files Browse the repository at this point in the history
otp26 compat
  • Loading branch information
id authored Oct 25, 2023
2 parents 626b199 + a4defa8 commit 74ea8c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
6 changes: 3 additions & 3 deletions c_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@
[{"(linux|darwin|solaris)", clean, "make -C c_src clean"},
{"(freebsd)", clean, "gmake -C c_src clean"}]}.

{plugins, [rebar3_hex]}.
{plugins, [rebar3_hex]}.

{ex_doc, [
{source_url, <<"https://github.com/kafka4beam/lz4b">>},
{extras, [<<"README.md">>, <<"LICENSE">>]},
{main, <<"readme">>}
]}.

{hex, [{doc, ex_doc}]}.

0 comments on commit 74ea8c3

Please sign in to comment.