diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e409b43 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --verbose + diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..1c754e6 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,20 @@ +name: Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Run tests + run: cargo test --verbose diff --git a/README.md b/README.md index 34e4a69..6daccb6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ -# Rust-fcp +[![Build](https://github.com/Horhik/rust-fcp/actions/workflows/build.yml/badge.svg)](https://github.com/Horhik/rust-fcp/actions/workflows/build.yml) [![Tests](https://github.com/Horhik/rust-fcp/actions/workflows/tests.yml/badge.svg?event=push)](https://github.com/Horhik/rust-fcp/actions/workflows/tests.yml) + +[![dependency status](https://deps.rs/repo/github/horhik/rust-fcp/status.svg)](https://deps.rs/repo/github/rust-fcp/rust-fcp) +[![Latest Version](https://img.shields.io/crates/v/fcpv2.svg)](https://crates.io/crates/fcpv2) +[![Docs](https://docs.rs/fcpv2/badge.svg)](https://docs.rs/fcpv2) + Library for freenet FCPv2 protocol It's set of structures from [official FCPv2 wiki](https://github.com/freenet/wiki/wiki/FCPv2), their implementations, parse and convert functions