From cdb6219763620f79b2f8834f50011f690c9007db Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 20 Feb 2025 22:42:46 +0200 Subject: [PATCH] setup workflow --- .github/FUNDING.yml | 1 + .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ README.md | 4 ++++ 3 files changed, 32 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..ada8a24 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: https://yggverse.github.io/#donate \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..85edd8b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: -Dwarnings + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Run rustfmt + run: cargo fmt --all -- --check + - name: Run clippy + run: cargo clippy --all-targets + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose diff --git a/README.md b/README.md index 646d1c7..cdf876b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # titanite +![Build](https://github.com/YGGverse/titanite/actions/workflows/build.yml/badge.svg) +[![Dependencies](https://deps.rs/repo/github/YGGverse/titanite/status.svg)](https://deps.rs/repo/github/YGGverse/titanite) +[![crates.io](https://img.shields.io/crates/v/titanite.svg)](https://crates.io/crates/titanite) + Client/Server Library for [Gemini protocol](https://geminiprotocol.net/docs/protocol-specification.gmi) with Titan support Unlike [ggemini](https://github.com/YGGverse/ggemini), which was created for Glib-based applications, titanite is oriented for use with the native [Rust](https://www.rust-lang.org/) ecosystem ecosystem.