Compare commits
4 Commits
60a079f00d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b29d585b87 | |||
| c288bece06 | |||
| 67811b43ca | |||
| 6d5378a7ec |
@@ -1,37 +0,0 @@
|
|||||||
version: 2.1
|
|
||||||
|
|
||||||
executors:
|
|
||||||
aebuilder:
|
|
||||||
docker:
|
|
||||||
- image: aeternity/builder:bionic-otp23
|
|
||||||
user: builder
|
|
||||||
working_directory: ~/src
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
executor: aebuilder
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- dialyzer-cache-v1-{{ .Branch }}-{{ .Revision }}
|
|
||||||
- dialyzer-cache-v1-{{ .Branch }}-
|
|
||||||
- dialyzer-cache-v1-
|
|
||||||
- run:
|
|
||||||
name: Build
|
|
||||||
command: rebar3 compile
|
|
||||||
- run:
|
|
||||||
name: Static Analysis
|
|
||||||
command: rebar3 dialyzer
|
|
||||||
- run:
|
|
||||||
name: Eunit
|
|
||||||
command: rebar3 eunit
|
|
||||||
- run:
|
|
||||||
name: Common Tests
|
|
||||||
command: rebar3 ct
|
|
||||||
- save_cache:
|
|
||||||
key: dialyzer-cache-v1-{{ .Branch }}-{{ .Revision }}
|
|
||||||
paths:
|
|
||||||
- _build/default/rebar3_20.3.8_plt
|
|
||||||
- store_artifacts:
|
|
||||||
path: _build/test/logs
|
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
name: eBlake2 Tests
|
||||||
|
run-name: ${{ gitea.actor }} testing eBlake2
|
||||||
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: linux_amd64
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: test
|
||||||
|
run: |
|
||||||
|
. /opt/act_runner/erts/27.2/activate
|
||||||
|
./rebar3 compile
|
||||||
|
./rebar3 dialyzer
|
||||||
|
./rebar3 eunit
|
||||||
|
./rebar3 ct
|
||||||
+1
-1
@@ -7,7 +7,7 @@ _*
|
|||||||
*.swp
|
*.swp
|
||||||
*.swo
|
*.swo
|
||||||
.erlang.cookie
|
.erlang.cookie
|
||||||
ebin
|
ebin/*.beam
|
||||||
log
|
log
|
||||||
erl_crash.dump
|
erl_crash.dump
|
||||||
.rebar
|
.rebar
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{application,eblake2,
|
||||||
|
[{description,"A pure Erlang Blake2 implementation"},
|
||||||
|
{registered,[]},
|
||||||
|
{included_applications,[]},
|
||||||
|
{applications,[stdlib,kernel]},
|
||||||
|
{vsn,"1.0.1"},
|
||||||
|
{modules,[eblake2,eblake2_tests]}]}.
|
||||||
+11
-3
@@ -4,9 +4,17 @@
|
|||||||
|
|
||||||
{plugins, [rebar3_hex]}.
|
{plugins, [rebar3_hex]}.
|
||||||
|
|
||||||
{profiles, [{test, [{deps, [{jsx, {git, "https://github.com/talentdeficit/jsx.git", {tag, "2.8.0"}}},
|
{profiles,
|
||||||
{enacl, {git, "https://github.com/aeternity/enacl.git", {ref, "a3d010b"}}}]}]}
|
[{test,
|
||||||
]}.
|
[{deps,
|
||||||
|
[{jsx,
|
||||||
|
{git,
|
||||||
|
"https://github.com/talentdeficit/jsx.git",
|
||||||
|
{tag, "2.8.0"}}},
|
||||||
|
{enacl,
|
||||||
|
{git,
|
||||||
|
"https://git.qpq.swiss/QPQ-AG/enacl.git",
|
||||||
|
{ref, "4eb7ec70084ba7c87b1af8797c4c4e90c84f95a2"}}}]}]}]}.
|
||||||
|
|
||||||
{xref_checks, [undefined_function_calls, undefined_functions,
|
{xref_checks, [undefined_function_calls, undefined_functions,
|
||||||
locals_not_used, deprecated_function_calls, deprecated_functions]}.
|
locals_not_used, deprecated_function_calls, deprecated_functions]}.
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
[].
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{application, eblake2,
|
{application, eblake2,
|
||||||
[{description, "A pure Erlang Blake2 implementation"},
|
[{description, "A pure Erlang Blake2 implementation"},
|
||||||
{vsn, "1.0.0"},
|
{vsn, "1.0.1"},
|
||||||
{registered, []},
|
{registered, []},
|
||||||
{applications,
|
{applications,
|
||||||
[kernel,
|
[kernel,
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
%%% @end
|
%%% @end
|
||||||
%%%=============================================================================
|
%%%=============================================================================
|
||||||
-module(eblake2).
|
-module(eblake2).
|
||||||
|
-vsn("1.0.1").
|
||||||
|
|
||||||
%% API exports
|
%% API exports
|
||||||
-export([ blake2b/2
|
-export([ blake2b/2
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{name,"eBlake2"}.
|
||||||
|
{type,lib}.
|
||||||
|
{modules,[]}.
|
||||||
|
{prefix,none}.
|
||||||
|
{author,"Hans Svensson"}.
|
||||||
|
{desc,"A pure Erlang Blake2 implementation"}.
|
||||||
|
{package_id,{"otpr","eblake2",{1,0,1}}}.
|
||||||
|
{deps,[]}.
|
||||||
|
{key_name,none}.
|
||||||
|
{a_email,[]}.
|
||||||
|
{c_email,[]}.
|
||||||
|
{copyright,"Hans Svensson"}.
|
||||||
|
{file_exts,[]}.
|
||||||
|
{license,skip}.
|
||||||
|
{repo_url,"https://git.qpq.swiss/QPQ-AG/eblake2"}.
|
||||||
|
{tags,["gajumaru","hash","btc","blockchain","crypto","eth","gaju"]}.
|
||||||
|
{ws_url,[]}.
|
||||||
Reference in New Issue
Block a user