Skip to content

Commit

Permalink
rewrite eradius
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
RoadRunnr committed May 8, 2024
1 parent 349282c commit 1ff6c00
Show file tree
Hide file tree
Showing 42 changed files with 2,891 additions and 4,937 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/hex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ on:

jobs:
publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: erlang:23.2.5.0-alpine
image: erlang:26.2-alpine
steps:
- name: Prepare
run: |
apk update
apk --no-cache upgrade
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: work around for permission issue
run: |
git config --global --add safe.directory /__w/eradius/eradius
- name: Publish to Hex.pm
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
run: |
rebar3 edoc
rebar3 ex_doc
rebar3 hex publish -r hexpm --yes
22 changes: 19 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,37 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
otp: [22, 23, 24, 25]
otp: [25.3, 26.0, 26.1, 26.2, 27.0-rc3]
container:
image: erlang:${{ matrix.otp }}-alpine
steps:
- name: Prepare
run: |
apk update
apk --no-cache upgrade
apk --no-cache add zstd
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build
run: rebar3 compile
- name: Run tests
run: |
export ERL_AFLAGS="+pc unicode -enable-feature all"
rebar3 do xref, ct
rebar3 as dialyzer do dialyzer
- name: Tar Test Output
if: ${{ always() }}
run: tar -cf - _build/test/logs/ | zstd -15 -o ct-logs-${{ matrix.otp }}.tar.zst
- name: Archive Test Output
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test-output-${{ matrix.otp }}
path: ct-logs-${{ matrix.otp }}.tar.xz

slack:
needs: test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: always()
steps:
- name: Slack notification
Expand Down
Loading

0 comments on commit 1ff6c00

Please sign in to comment.