9 Commits
Author SHA1 Message Date
melfely ae39643568 chore(example_lib): release v0.1.1
Lint & Build / Linting (pull_request) Successful in 2m26s
Release-plz / Release-plz release (push) Successful in 2m36s
Release-plz / Release-plz PR (push) Successful in 2m39s
Lint & Build / Build (pull_request) Successful in 1m20s
Lint & Build / Test (pull_request) Successful in 2m32s
Lint & Build / Cross-Build-Windows (pull_request) Successful in 12m28s
Lint & Build / Cross-Build-Linux (pull_request) Successful in 12m49s
Lint & Build / Cross-Build-MacOS (pull_request) Successful in 13m21s
Signed-off-by: melfey <bug362@outlook.com>
2026-09-10 20:35:29 -05:00
melfely bb37eb9d94 feat: added pub fn sub()
Release-plz / Release-plz release (push) Successful in 1m27s
Release-plz / Release-plz PR (push) Failing after 1m34s
This takes in two u64, and returns the difference.

TESTING WORKFLOWS
2026-09-10 20:18:36 -05:00
melfely 77cfc8bed9 ci: added git user and correct cargo repo token signature
Release-plz / Release-plz release (push) Successful in 1m33s
Release-plz / Release-plz PR (push) Successful in 1m34s
2026-09-10 20:12:55 -05:00
melfely 8abb2f210b fix: wrong url in the config.toml cargo registry
Release-plz / Release-plz PR (push) Failing after 1m28s
Release-plz / Release-plz release (push) Failing after 1m33s
2026-09-10 20:05:24 -05:00
melfely a70cbca5a9 ci: Change from release-plz action to cli
Release-plz / Release-plz release (push) Failing after 1m47s
Release-plz / Release-plz PR (push) Failing after 1m54s
The action currently only supports github (I think) while the CLI tool claims to support gitea (the action also does...)
2026-09-10 20:00:06 -05:00
melfely bbca93470c ci: replaces v0.5 with v0.4 (this working is a hell of a stretch)
Release-plz / Release-plz PR (push) Failing after 1m20s
Release-plz / Release-plz release (push) Failing after 1m20s
2026-09-10 19:36:18 -05:00
melfely a1aaf5cd7e ci: Added gh tool install.
Release-plz / Release-plz PR (push) Failing after 1m43s
Release-plz / Release-plz release (push) Failing after 1m44s
2026-09-10 19:31:37 -05:00
melfely b3d5f4ef18 ci: Removed Github token from the run.
Release-plz / Release-plz release (push) Failing after 1m38s
Release-plz / Release-plz PR (push) Failing after 1m40s
2026-09-10 18:54:03 -05:00
melfely 316a3c591d ci: Added Release-Plz CI workflow.
Release-plz / Release-plz release (push) Failing after 1m53s
Release-plz / Release-plz PR (push) Failing after 1m55s
2026-09-10 18:47:25 -05:00
6 changed files with 102 additions and 3 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
[registries.gitea] [registries.gitea]
index = "sparse+https://gitea.example.com/api/packages/crates/cargo/" index = "sparse+https://gitea.melfely.com/api/packages/crates/cargo/"
+79
View File
@@ -0,0 +1,79 @@
name: Release-plz
on:
push:
# Comment out branch restrictions until we are closer to done
# branches:
# - [main, master]
jobs:
# Release unpublished packages.
release-plz-release:
name: Release-plz release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- &setup-git-user
name: Config Git User
run: |
git config --global user.name "ci-bot"
git config --global user.email "bot@email.melfely.com"
- &checkout
name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- &install-rust
name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- &install-cargo-semver
name: Install Cargo SemVer Checks
uses: taiki-e/install-action@fa23953489c080190314742a9b907f8e97c6767c # v2.87.10
with:
tool: cargo-semver-checks
- &install-release-plz
name: Install release-plz
uses: taiki-e/install-action@fa23953489c080190314742a9b907f8e97c6767c # v2.87.10
with:
tool: release-plz
- name: Run release-plz release
run: |
release-plz release --forge gitea --git-token ${{ secrets.GITEA_TOKEN }} --registry gitea --token "Bearer ${{ secrets.CARGO_REGISTRIES_GITEA_TOKEN }}"
# Create a PR with the new versions and changelog, preparing the next releases
release-plz-pr:
name: Release-plz PR
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- *setup-git-user
- *checkout
- *install-rust
- *install-cargo-semver
- *install-release-plz
- name: Run release-plz release-pr
run: |
release-plz release-pr --forge gitea --git-token ${{ secrets.GITEA_TOKEN }} --registry gitea
Generated
+1 -1
View File
@@ -8,4 +8,4 @@ version = "0.1.0"
[[package]] [[package]]
name = "example_lib" name = "example_lib"
version = "0.1.0" version = "0.1.1"
+14
View File
@@ -0,0 +1,14 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.1.1](https://gitea.melfely.com/melfely/rust_workflow_template/compare/example_lib-v0.1.0...example_lib-v0.1.1) - 2026-09-11
### Added
- added pub fn sub()
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "example_lib" name = "example_lib"
version = "0.1.0" version = "0.1.1"
edition = "2024" edition = "2024"
[dependencies] [dependencies]
+6
View File
@@ -2,6 +2,10 @@ pub fn add(left: u64, right: u64) -> u64 {
left + right left + right
} }
pub fn sub(left: u64, right: u64) -> u64 {
left - right
}
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
@@ -10,5 +14,7 @@ mod tests {
fn it_works() { fn it_works() {
let result = add(2, 2); let result = add(2, 2);
assert_eq!(result, 4); assert_eq!(result, 4);
let result = sub(2, 2);
assert_eq!(result, 0);
} }
} }