Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 18 additions & 22 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,65 @@ when:

steps:
- name: fmt
image: rust:1.94-bookworm
image: rust:1.95-bookworm
environment:
GIT_AUTH_TOKEN:
from_secret: git_auth_token
RUSTC_WRAPPER: sccache
SCCACHE_REDIS: "redis://100.92.54.45:6380"
commands:
- curl -sSfL "https://github.com/mozilla/sccache/releases/download/v0.8.2/sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz" | tar -xz -C /tmp && mv /tmp/sccache-v0.8.2-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache
- git config --global url."http://x-access-token:$GIT_AUTH_TOKEN@100.92.54.45:3002/".insteadOf "http://100.92.54.45:3002/"
- printf '[registries.forgejo]\nindex = "sparse+https://repo.indexarr.net/api/packages/indexarr/cargo/"\ncredential-provider = "cargo:token"\n\n[registry]\ndefault = "forgejo"\n' > $CARGO_HOME/config.toml
- printf '[registries.forgejo]\ntoken = "Bearer %s"\n' "$GIT_AUTH_TOKEN" > $CARGO_HOME/credentials.toml
- rustup component add rustfmt
- cargo fmt --all -- --check

- name: check
image: rust:1.94-bookworm
image: rust:1.95-bookworm
environment:
GIT_AUTH_TOKEN:
from_secret: git_auth_token
RUSTC_WRAPPER: sccache
SCCACHE_REDIS: "redis://100.92.54.45:6380"
commands:
- curl -sSfL "https://github.com/mozilla/sccache/releases/download/v0.8.2/sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz" | tar -xz -C /tmp && mv /tmp/sccache-v0.8.2-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache
- git config --global url."http://x-access-token:$GIT_AUTH_TOKEN@100.92.54.45:3002/".insteadOf "http://100.92.54.45:3002/"
- printf '[registries.forgejo]\nindex = "sparse+https://repo.indexarr.net/api/packages/indexarr/cargo/"\ncredential-provider = "cargo:token"\n\n[registry]\ndefault = "forgejo"\n' > $CARGO_HOME/config.toml
- printf '[registries.forgejo]\ntoken = "Bearer %s"\n' "$GIT_AUTH_TOKEN" > $CARGO_HOME/credentials.toml
- cargo check --workspace

- name: test
image: rust:1.94-bookworm
image: rust:1.95-bookworm
environment:
GIT_AUTH_TOKEN:
from_secret: git_auth_token
RUSTC_WRAPPER: sccache
SCCACHE_REDIS: "redis://100.92.54.45:6380"
commands:
- curl -sSfL "https://github.com/mozilla/sccache/releases/download/v0.8.2/sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz" | tar -xz -C /tmp && mv /tmp/sccache-v0.8.2-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache
- git config --global url."http://x-access-token:$GIT_AUTH_TOKEN@100.92.54.45:3002/".insteadOf "http://100.92.54.45:3002/"
- printf '[registries.forgejo]\nindex = "sparse+https://repo.indexarr.net/api/packages/indexarr/cargo/"\ncredential-provider = "cargo:token"\n\n[registry]\ndefault = "forgejo"\n' > $CARGO_HOME/config.toml
- printf '[registries.forgejo]\ntoken = "Bearer %s"\n' "$GIT_AUTH_TOKEN" > $CARGO_HOME/credentials.toml
- cargo test --workspace

- name: clippy
image: rust:1.94-bookworm
image: rust:1.95-bookworm
environment:
GIT_AUTH_TOKEN:
from_secret: git_auth_token
RUSTC_WRAPPER: sccache
SCCACHE_REDIS: "redis://100.92.54.45:6380"
commands:
- curl -sSfL "https://github.com/mozilla/sccache/releases/download/v0.8.2/sccache-v0.8.2-x86_64-unknown-linux-musl.tar.gz" | tar -xz -C /tmp && mv /tmp/sccache-v0.8.2-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache
- git config --global url."http://x-access-token:$GIT_AUTH_TOKEN@100.92.54.45:3002/".insteadOf "http://100.92.54.45:3002/"
- printf '[registries.forgejo]\nindex = "sparse+https://repo.indexarr.net/api/packages/indexarr/cargo/"\ncredential-provider = "cargo:token"\n\n[registry]\ndefault = "forgejo"\n' > $CARGO_HOME/config.toml
- printf '[registries.forgejo]\ntoken = "Bearer %s"\n' "$GIT_AUTH_TOKEN" > $CARGO_HOME/credentials.toml
- rustup component add clippy
- cargo clippy --workspace -- -D warnings

- name: publish
image: rust:1.94-bookworm
image: rust:1.95-bookworm
environment:
GIT_AUTH_TOKEN:
from_secret: git_auth_token
Expand All @@ -64,22 +76,6 @@ steps:
- event: push
branch: main

- name: trigger-renovate
image: alpine/curl
environment:
WOODPECKER_TOKEN:
from_secret: woodpecker_token
commands:
- |
curl -sf -X POST \
"https://ci.indexarr.net/api/repos/indexarr/renovate/pipelines" \
-H "Authorization: Bearer $WOODPECKER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"branch":"main"}'
when:
- event: push
branch: main

- name: discord-success
image: alpine/curl
environment:
Expand All @@ -89,7 +85,7 @@ steps:
- |
curl -s -X POST "$DISCORD_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d "{\"embeds\":[{\"title\":\"librtbit-buffers published\",\"description\":\"Published to Forgejo registry. Renovate scan triggered.\",\"color\":3066993}]}"
-d "{\"embeds\":[{\"title\":\"librtbit-buffers published\",\"description\":\"Published to Forgejo registry.\",\"color\":3066993}]}"
when:
- event: push
branch: main
Expand Down
7 changes: 3 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "librtbit-buffers"
version = "0.1.1"
version = "0.1.2"
edition = "2024"
description = "Utils to work with byte buffers in librtbit source code"
license = "MIT"
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/AusAgentSmith-org/librtbit-buffers"
[dependencies]
serde = "1"
serde_derive = "1"
clone_to_owned = { version = "0.1.1", package = "librtbit-clone-to-owned" }
clone_to_owned = { git = "https://github.com/TheDancingDeveloper-org/librtbit-clone-to-owned.git", package = "librtbit-clone-to-owned" }
bytes = "1"

[lints.clippy]
Expand Down