Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/EIYARO/ey
Browse files Browse the repository at this point in the history
  • Loading branch information
EIYARO committed Apr 10, 2024
2 parents 41311f1 + 53c4c34 commit 984db15
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 20 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: EIYARO Main Workflow

defaults:
run:
shell: bash

permissions:
contents: write

on:

push:
branches: [ main ]
tags: [ "*" ]
paths-ignore: [ "README.md", "CHANGELOG.md", "cliff.toml" ]

pull_request:
branches: [ main ]

jobs:

build:
name: Build Applications
runs-on: ubuntu-latest

steps:
- name: Checkput
uses: actions/checkout@v3
with:
submodules: true

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'

- name: Build Server
run: make eiyarod

- name: Build Client
run: make eiyarocli

release:
if: contains(github.ref_type, 'tag')
name: Create GitHub Release
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true

- name: Build Release
run: make release-all

- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
name: EIYARO ${{ env.tag }}
body: "## New release"
files: target/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85 changes: 85 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# How to contribute


## Formatting

All source code should be formatted using the default formatting rules for Go code, which your IDE should provide.

## Commit Messages

(Originally from the [Udacity Git Commit Message Style Guide](https://udacity.github.io/git-styleguide/index.html))

### Message Structure

A commit messages consists of three distinct parts separated by a blank line: the title, an optional body and an optional footer.

The layout looks like this:
```
type: subject
body
footer
```

The title consists of the type of the message and subject.

### The Type

The type is contained within the title and can be one of these types:

* feat: a new feature
* fix: a bug fix
* docs: changes to documentation
* style: formatting, missing semi colons, etc; no code change
* refactor: refactoring production code
* test: adding tests, refactoring test; no production code change
* chore: updating build tasks, package manager configs, etc; no production code change

### The Subject

Subjects should be no greater than 50 characters, should begin with a capital letter and do not end with a period.

Use an imperative tone to describe what a commit does, rather than what it did. For example, use change; not changed or changes.

### The Body

Not all commits are complex enough to warrant a body, therefore it is optional and only used when a commit requires a bit of explanation and context. Use the body to explain the what and why of a commit, not the how.

When writing a body, the blank line between the title and the body is required and you should limit the length of each line to no more than 72 characters.

### The Footer

The footer is optional and is used to reference issue tracker IDs.

### Example Commit Message

```
feat: Summarise changes in around 50 characters or less
More detailed explanatory text, if necessary. Wrap it to about 72
characters or so. In some contexts, the first line is treated as the
subject of the commit and the rest of the text as the body. The
blank line separating the summary from the body is critical (unless
you omit the body entirely); various tools like `log`, `shortlog`
and `rebase` can get confused if you run the two together.
Explain the problem that this commit is solving. Focus on why you
are making this change as opposed to how (the code explains that).
Are there side effects or other non intuitive consequences of this
change? Here's the place to explain them.
Further paragraphs come after blank lines.
- Bullet points are okay, too
- Typically a hyphen or asterisk is used for the bullet, preceded
by a single space, with blank lines in between, but conventions
vary here
If you use an issue tracker, put references to them at the bottom,
like this:
Resolves: #123
See also: #456, #789
```
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ release: binary
endif

release-all: clean
GOOS=darwin make release
# GOOS=darwin make release
GOOS=linux make release
GOOS=windows make release

Expand Down Expand Up @@ -132,7 +132,7 @@ benchmark:
@go test -bench $(PACKAGES)

functional-tests:
@go test -timeout=5m -tags="functional" ./test
@go test -timeout=5m -tags="functional" ./test

ci: test functional-tests

Expand Down
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
Eiyaro

[![Build Status](https://travis-ci.org/Eiyaro/e.svg)](https://travis-ci.org/Eiyaro/ey) [![AGPL v3](https://img.shields.io/badge/license-AGPL%20v3-brightgreen.svg)](./LICENSE)
[![Build](https://github.com/EIYARO/ey/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/EIYARO/ey/actions)
[![Supports Windows](https://img.shields.io/badge/support-Windows-blue?logo=Windows)](https://github.com/EIYARO/ey/releases/latest)
[![Supports Linux](https://img.shields.io/badge/support-Linux-yellow?logo=Linux)](https://github.com/EIYARO/ey/releases/latest)
[![License](https://img.shields.io/github/license/EIYARO/ey)](https://github.com/EIYARO/ey/blob/master/LICENSE)
[![Latest Release](https://img.shields.io/github/v/release/EIYARO/ey?label=latest%20release)](https://github.com/EIYARO/ey/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/EIYARO/ey/total)](https://github.com/EIYARO/ey/releases)

**Official golang implementation of the Eiyaro protocol.**

Automated builds are available for stable releases and the unstable master branch. Binary archives are published at https://github.com/Eiyaro/ey/releases.
Automated builds are available for stable releases and the unstable master branch. Binary archives are published at https://github.com/EIYARO/ey/releases.

## What is Eiyaro?

Expand All @@ -17,8 +22,8 @@ In the current state `eiyaro` is able to:

## Installing with Homebrew

```
brew tap eiyaro/eiyaro && brew install eiyaro
```console
$ brew tap eiyaro/eiyaro && brew install eiyaro
```

## Building from source
Expand All @@ -31,22 +36,21 @@ brew tap eiyaro/eiyaro && brew install eiyaro

Ensure Go with the supported version is installed properly:

```bash
```console
$ go version
$ go env GOROOT GOPATH
```

- Get the source code

``` bash
```console
$ git clone https://github.com/Eiyaro/ey.git $GOPATH/src/eiyaro/ey
```

- Build source code

``` bash
```console
$ cd $GOPATH/src/eiyaro/ey
$ go mod tidy
$ make eiyarocd
$ make eiyaroccli
```
Expand All @@ -70,11 +74,10 @@ Currently, eiyaro is still in active development and a ton of work needs to be d

First of all, initialize the node:

```bash
```console
$ cd /src/eiyaro/ey/cmd/eiyarod
$ go build
$ ./eiyarod init --chain_id mainnet

```

There are three options for the flag `--chain_id`:
Expand All @@ -87,9 +90,8 @@ After that, you'll see `config.toml` generated, then launch the node.

### launch

``` bash
```console
$ nohup ./eiyarod node &

```

available flags for `eiyarod node`:
Expand Down Expand Up @@ -139,8 +141,8 @@ Given the `eiyarod` node is running, the general workflow is as follows:
__simd feature:__

You could enable the _simd_ feature to speed up the _PoW_ verification (e.g., during mining and block verification) by simply:
```
eiyarod node --simd.enable
```console
$ eiyarod node --simd.enable
```

To enable this feature you will need to compile from the source code by yourself, and `make eiyarod-simd`.
Expand All @@ -156,7 +158,7 @@ For more details about using `eiyarocli` command please refer to [API Reference]

Copy and save your tokename, tokename is used to log into your node page Access the dashboard:

```
```console
$ cd /src/eiyaro/ey/cmd/eiyarocli
$ go build
$ ./eiyarocli create-access-token eiyaro
Expand All @@ -168,17 +170,17 @@ $ open http://localhost:9888/ OR Login with your IP + 9888 port

Ensure your [Docker](https://www.docker.com/) version is 17.05 or higher.

```bash
```console
$ docker build -t eiyaro .
```

For the usage please refer to [running-in-docker-wiki](https://github.com/Eiyaro/ey/wiki/Running-in-Docker).
For the usage please refer to [running-in-docker-wiki](https://github.com/EIYARO/ey/wiki/Running-in-Docker).

## Contributing

Thank you for considering helping out with the source code! Any contributions are highly appreciated, and we are grateful for even the smallest of fixes!

If you run into an issue, feel free to [eiyaro issues](https://github.com/Eiyaro/ey/issues/) in this repository. We are glad to help!
If you run into an issue, feel free to [eiyaro issues](https://github.com/EIYARO/ey/issues/) in this repository. We are glad to help!

## License

Expand Down

0 comments on commit 984db15

Please sign in to comment.