ci: run fmt, clippy and tests on the Gitea runner #18

Merged
andreban merged 2 commits from ci/gitea-actions into main 2026-10-26 20:42:05 +00:00
Owner

Gitea Actions now has a runner (beelink, act_runner 0.6.1, stack ~/docker-recipes/gitea-runner). The existing workflow failed on it with cargo: command not found, because the Gitea Ubuntu runner image, unlike GitHub's, has no Rust.

  • Install stable Rust with dtolnay/rust-toolchain, plus clippy and rustfmt.
  • Cache builds with Swatinem/rust-cache (it uses the runner's built-in cache server).
  • Run cargo fmt --check and cargo clippy --all-targets -- -D warnings before cargo test.
  • Run cargo fmt on the examples, which were the only files out of format.

Testing

Ran cargo fmt --check, the clippy command and cargo test locally (33 tests passed). This PR's own Actions run checks the workflow.

Gitea Actions now has a runner (`beelink`, act_runner 0.6.1, stack `~/docker-recipes/gitea-runner`). The existing workflow failed on it with `cargo: command not found`, because the Gitea Ubuntu runner image, unlike GitHub's, has no Rust. - Install stable Rust with `dtolnay/rust-toolchain`, plus clippy and rustfmt. - Cache builds with `Swatinem/rust-cache` (it uses the runner's built-in cache server). - Run `cargo fmt --check` and `cargo clippy --all-targets -- -D warnings` before `cargo test`. - Run `cargo fmt` on the examples, which were the only files out of format. ## Testing Ran `cargo fmt --check`, the clippy command and `cargo test` locally (33 tests passed). This PR's own Actions run checks the workflow.
andreban added 2 commits 2026-10-26 20:34:55 +00:00
ci: install Rust on the Gitea runner and check fmt and clippy
All checks were successful
Rust / check (pull_request) Successful in 5m14s
6d49f9939c
The Gitea runner image doesn't include Rust, so every job failed at
'cargo: command not found'. Install the stable toolchain, cache the
build, and run cargo fmt --check and clippy alongside the tests.
andreban merged commit 4791125943 into main 2026-10-26 20:42:05 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: andreban/gemini-rs#18