From 091fba232b43effe5bdea043268f1e41a2a6c6e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20W=C3=B6lfer?= Date: Thu, 29 Jan 2026 20:03:13 +0100 Subject: [PATCH] ci: initialized --- .gitea/workflows/release.yaml | 38 +++++++++++++++++++++++++++++++++++ .gitea/workflows/test.yaml | 13 ++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .gitea/workflows/release.yaml create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..d4d7493 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,38 @@ +name: Release + +on: + push: + tags: + - 'v*.*.*' + +jobs: + build_release: + runs-on: ubuntu-latest + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + GITEA_SERVER: ${{ secrets.GITEA_SERVER }} + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: nightly + + - name: Build release + run: | + cargo build --release + - name: Generate a changelog + uses: orhun/git-cliff-action@v4 + id: git-cliff + with: + config: cliff.toml + args: --verbose --latest + github_token: "" + env: + OUTPUT: CHANGELOG.md + - uses: akkuman/gitea-release-action@v1 + with: + files: |- + target/release/chkr + body: ${{ steps.git-cliff.outputs.content }} diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..3efd0c9 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,13 @@ +name: Rust + +on: [push, pull_request] + +jobs: + build_and_test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: nightly + - run: cargo test --all-features