Skip to content

Commit

Permalink
Merge pull request #172 from ariel-anieli/otp-bump
Browse files Browse the repository at this point in the history
OTP bump
  • Loading branch information
ferd authored Mar 18, 2024
2 parents cb39837 + 63b1798 commit 182c30a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
otp_version: ['25.3', '25.2', '23.2']
otp_version: ['26.2', '25.3', '25.2', '23.2']
os: [ubuntu-latest]

steps:
Expand Down
11 changes: 9 additions & 2 deletions rebar.config.script
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ Rebar2Deps = [
{cf, ".*", {git, "https://github.com/project-fifo/cf", {tag, "0.2.2"}}}
],

NoDialWarns = {dialyzer, [{warnings, [no_unknown]}]},
OTPRelease = erlang:list_to_integer(erlang:system_info(otp_release)),
WarnsRemoved = case OTPRelease<26 of
true -> fun(Config) -> Config end;
false -> fun(Config) -> lists:keystore(dialyzer, 1, Config, NoDialWarns) end
end,

case IsRebar3 of
true -> CONFIG;
true -> WarnsRemoved(CONFIG);
false ->
lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps})
lists:keyreplace(deps, 1, WarnsRemoved(CONFIG), {deps, Rebar2Deps})
end.

0 comments on commit 182c30a

Please sign in to comment.