diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fbb4fb..372bce8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,15 @@ jobs: cd rust cargo build --verbose cargo test --verbose + - uses: erlef/setup-beam@v1 + with: + otp-version: 26.2 + rebar3-version: "3.22.1" + - name: build-test-erlang + run: | + cd erlang + rebar3 compile + rebar3 eunit macos: runs-on: macos-latest @@ -124,6 +133,15 @@ jobs: cd rust cargo build --verbose cargo test --verbose + - uses: erlef/setup-beam@v1 + with: + otp-version: 26.2 + rebar3-version: "3.22.1" + - name: build-test-erlang + run: | + cd erlang + rebar3 compile + rebar3 eunit qemu: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 5af2854..aecd5ed 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,45 @@ end +### ruapu with Erlang + +
+ +Compile ruapu library + +```shell +# from source code +rebar3 compile +``` + | ++ +Use ruapu in Erlang `rebar3 shell` + +```erlang +ruapu:rua(). +{ok,["neon","vfpv4","asimdrdm","asimdhp","asimddp", + "asimdfhm","bf16","i8mm","pmull","crc32","aes","sha1", + "sha2","sha3","sha512","amx"]} +> ruapu:supports("neon"). +true +> ruapu:supports(neon). +true +> ruapu:supports(<<"neon">>). +true +> ruapu:supports("avx2"). +false +> ruapu:supports(avx2). +false +> ruapu:supports(<<"avx2">>). +false +``` + + |