Skip to content

Commit dc3bc8e

Browse files
committed
rewrite eradius
v3 rewrite of eradius, major changes: * clients and servers are now started and configured through APIs, not app env settings any more * IPv6 support * supports multiple server and client instances * metrics are optional and callback based (allows the easy use of other metrics frameworks) * distributed handlers are no longer support, use erpc to replicate in use case specific code if needed. * removed proxy support (use freeradius or similar instead)
1 parent 349282c commit dc3bc8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2815
-4918
lines changed

.github/workflows/hex.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ on:
77

88
jobs:
99
publish:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
container:
12-
image: erlang:23.2.5.0-alpine
12+
image: erlang:26.2-alpine
1313
steps:
1414
- name: Prepare
1515
run: |
1616
apk update
1717
apk --no-cache upgrade
1818
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
1919
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: work around for permission issue
2222
run: |
2323
git config --global --add safe.directory /__w/eradius/eradius
2424
- name: Publish to Hex.pm
2525
env:
2626
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
2727
run: |
28-
rebar3 edoc
28+
rebar3 ex_doc
2929
rebar3 hex publish -r hexpm --yes

.github/workflows/main.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,37 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
otp: [22, 23, 24, 25]
11+
otp: [25.3, 26.0, 26.1, 26.2, 27.0-rc3]
1212
container:
1313
image: erlang:${{ matrix.otp }}-alpine
1414
steps:
15+
- name: Prepare
16+
run: |
17+
apk update
18+
apk --no-cache upgrade
19+
apk --no-cache add zstd
1520
- name: Checkout
16-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
1722
- name: Build
1823
run: rebar3 compile
1924
- name: Run tests
2025
run: |
26+
export ERL_AFLAGS="+pc unicode -enable-feature all"
2127
rebar3 do xref, ct
28+
rebar3 as dialyzer do dialyzer
29+
- name: Tar Test Output
30+
if: ${{ always() }}
31+
run: tar -cf - _build/test/logs/ | zstd -15 -o ct-logs-${{ matrix.otp }}.tar.zst
32+
- name: Archive Test Output
33+
if: ${{ always() }}
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: test-output-${{ matrix.otp }}
37+
path: ct-logs-${{ matrix.otp }}.tar.xz
2238

2339
slack:
2440
needs: test
25-
runs-on: ubuntu-20.04
41+
runs-on: ubuntu-22.04
2642
if: always()
2743
steps:
2844
- name: Slack notification

0 commit comments

Comments
 (0)