Update release workflow to standardize naming and improve patch function signatures

- Changed the release notes header from "Yaze" to "yaze" for consistency in the release workflow.
- Updated the CreateBpsPatch and ApplyBpsPatch functions in bps.h to return absl::Status for better error handling and clarity.
This commit is contained in:
scawful
2025-09-28 12:28:13 -04:00
parent 9bb67b2fe1
commit bd049a14fd
2 changed files with 7 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ jobs:
cat release_notes.md cat release_notes.md
else else
echo "Failed to extract changelog, creating default release notes" echo "Failed to extract changelog, creating default release notes"
echo "# Yaze $VERSION Release Notes\n\nPlease see the full changelog at docs/C1-changelog.md" > release_notes.md echo "# yaze $VERSION Release Notes\n\nPlease see the full changelog at docs/C1-changelog.md" > release_notes.md
fi fi
- name: Store release notes - name: Store release notes
@@ -349,7 +349,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ needs.validate-and-prepare.outputs.tag_name }} tag_name: ${{ needs.validate-and-prepare.outputs.tag_name }}
name: Yaze ${{ needs.validate-and-prepare.outputs.tag_name }} name: yaze ${{ needs.validate-and-prepare.outputs.tag_name }}
body: ${{ needs.validate-and-prepare.outputs.release_notes }} body: ${{ needs.validate-and-prepare.outputs.release_notes }}
draft: false draft: false
prerelease: ${{ contains(needs.validate-and-prepare.outputs.tag_name, 'beta') || contains(needs.validate-and-prepare.outputs.tag_name, 'alpha') || contains(needs.validate-and-prepare.outputs.tag_name, 'rc') }} prerelease: ${{ contains(needs.validate-and-prepare.outputs.tag_name, 'beta') || contains(needs.validate-and-prepare.outputs.tag_name, 'alpha') || contains(needs.validate-and-prepare.outputs.tag_name, 'rc') }}
@@ -365,6 +365,6 @@ jobs:
steps: steps:
- name: Announce release - name: Announce release
run: | run: |
echo "🎉 Yaze ${{ needs.validate-and-prepare.outputs.tag_name }} has been released!" echo "🎉 yaze ${{ needs.validate-and-prepare.outputs.tag_name }} has been released!"
echo "📦 Packages are now available for download" echo "📦 Packages are now available for download"
echo "🔗 Release URL: https://github.com/${{ github.repository }}/releases/tag/${{ needs.validate-and-prepare.outputs.tag_name }}" echo "🔗 Release URL: https://github.com/${{ github.repository }}/releases/tag/${{ needs.validate-and-prepare.outputs.tag_name }}"

View File

@@ -4,14 +4,16 @@
#include <cstdint> #include <cstdint>
#include <vector> #include <vector>
#include "absl/status/status.h"
namespace yaze { namespace yaze {
namespace util { namespace util {
void CreateBpsPatch(const std::vector<uint8_t> &source, absl::Status CreateBpsPatch(const std::vector<uint8_t> &source,
const std::vector<uint8_t> &target, const std::vector<uint8_t> &target,
std::vector<uint8_t> &patch); std::vector<uint8_t> &patch);
void ApplyBpsPatch(const std::vector<uint8_t> &source, absl::Status ApplyBpsPatch(const std::vector<uint8_t> &source,
const std::vector<uint8_t> &patch, const std::vector<uint8_t> &patch,
std::vector<uint8_t> &target); std::vector<uint8_t> &target);