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:
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -85,7 +85,7 @@ jobs:
|
||||
cat release_notes.md
|
||||
else
|
||||
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
|
||||
|
||||
- name: Store release notes
|
||||
@@ -349,7 +349,7 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
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 }}
|
||||
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') }}
|
||||
@@ -365,6 +365,6 @@ jobs:
|
||||
steps:
|
||||
- name: Announce release
|
||||
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 "🔗 Release URL: https://github.com/${{ github.repository }}/releases/tag/${{ needs.validate-and-prepare.outputs.tag_name }}"
|
||||
|
||||
@@ -4,14 +4,16 @@
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/status/status.h"
|
||||
|
||||
namespace yaze {
|
||||
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,
|
||||
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,
|
||||
std::vector<uint8_t> &target);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user