Merge branch 'ci/add_gitea_workflows' into 'main'

ci: add gitea workflow

See merge request veretcle/oolatoocs!42
This commit is contained in:
VC
2025-12-03 10:01:31 +00:00
4 changed files with 45 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
---
name: rust-check
on: # yamllint disable-line rule:truthy
- push
jobs:
rust-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: "clippy,rustfmt"
- run: cargo fmt -- --check
- run: cargo check
- run: cargo clippy -- -D warnings
- run: cargo test
- run: cargo build

View File

@@ -0,0 +1,23 @@
---
name: rust-release
on: # yamllint disable-line rule:truthy
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Get package name
run: echo "CARGO_PKG_NAME=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].name')" >> $GITEA_ENV
- run: cargo build --release
- uses: https://gitea.com/actions/gitea-release-action@v1
with:
files: |-
target/release/${{ env.CARGO_PKG_NAME }}
api_key: '${{ secrets.RELEASE_TOKEN }}'

2
Cargo.lock generated
View File

@@ -1926,7 +1926,7 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
[[package]] [[package]]
name = "oolatoocs" name = "oolatoocs"
version = "4.5.1" version = "4.5.2"
dependencies = [ dependencies = [
"atrium-api", "atrium-api",
"bsky-sdk", "bsky-sdk",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "oolatoocs" name = "oolatoocs"
version = "4.5.1" version = "4.5.2"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html