Skip to content
This repository has been archived by the owner on Feb 14, 2021. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-valor committed Mar 25, 2020
0 parents commit 4e7eff8
Show file tree
Hide file tree
Showing 27 changed files with 9,262 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Contributiong to Advanca Node

:tada: First of all, thanks for taking time to contribute.

## Style Guidelines

As a Rust project, it simply follows [Rust Style Guide](https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md) which can be checked and enforced by [rustfmt](https://github.com/rust-lang/rustfmt). Also, there are a few non-formatting advices such as [naming convention](https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/advice.md#names).

This repository has integrated format checker on the submitted code.
26 changes: 26 additions & 0 deletions .github/workflows/publish-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: github pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: install stable toolchain and other components
uses: actions-rs/toolchain@v1.0.5
with:
profile: minimal
toolchain: stable
- name: create cargo doc
run: cargo doc -p advanca-core --no-deps
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
24 changes: 24 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Rust

on: [push]

jobs:
check:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: install stable toolchain and other components
uses: actions-rs/toolchain@v1.0.5
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: install wasm
run: ./scripts/init.sh
- name: format check
run: cargo fmt -- --check
# TODO: enable the linter
# - name: linter
# run: cargo clippy
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generated by Cargo
# will have compiled files and executables
**/target/
# These are backup files generated by rustfmt
**/*.rs.bk

.DS_Store

.vscode/
Loading

0 comments on commit 4e7eff8

Please sign in to comment.