Compare commits

..

1 Commits

Author SHA1 Message Date
Renovate Bot
1192d8c846 chore(deps): update https://github.com/taiki-e/install-action digest to 787505c 2026-04-25 05:03:35 +00:00
5 changed files with 12 additions and 33 deletions

View File

@@ -96,7 +96,7 @@ jobs:
if [[ ${{ forge.ref_name }} =~ ^v+[0-9]\.+[0-9]\.+[0-9]$ ]]; then if [[ ${{ forge.ref_name }} =~ ^v+[0-9]\.+[0-9]\.+[0-9]$ ]]; then
# Use the "stable" component for tagged semver releases # Use the "stable" component for tagged semver releases
COMPONENT="stable" COMPONENT="stable"
elif [[ ${{ forge.ref_name }} =~ ^v+[0-9]\.+[0-9]\.+[0-9] ]]; then elif [[ ${{ forge.ref }} =~ ^refs/tags/^v+[0-9]\.+[0-9]\.+[0-9] ]]; then
# Use the "unstable" component for tagged semver pre-releases # Use the "unstable" component for tagged semver pre-releases
COMPONENT="unstable" COMPONENT="unstable"
else else

View File

@@ -105,7 +105,7 @@ jobs:
RELEASE_SUFFIX="" RELEASE_SUFFIX=""
TAG_NAME="${{ github.ref_name }}" TAG_NAME="${{ github.ref_name }}"
# Extract version from tag (remove v prefix if present) # Extract version from tag (remove v prefix if present)
TAG_VERSION=$(echo "$TAG_NAME" | sed 's/^v//' | tr '-' '~') TAG_VERSION=$(echo "$TAG_NAME" | sed 's/^v//')
# Create spec file with tag version # Create spec file with tag version
sed -e "s/^Version:.*$/Version: $TAG_VERSION/" \ sed -e "s/^Version:.*$/Version: $TAG_VERSION/" \
@@ -270,13 +270,9 @@ jobs:
# Determine the group based on ref type and branch # Determine the group based on ref type and branch
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
GROUP="stable"
# For tags, extract the tag name for version info # For tags, extract the tag name for version info
TAG_NAME="${{ github.ref_name }}" TAG_NAME="${{ github.ref_name }}"
if [[ "$TAG_NAME" == *"-"* ]]; then
GROUP="unstable"
else
GROUP="stable"
fi
elif [ "${{ github.ref_name }}" = "main" ]; then elif [ "${{ github.ref_name }}" = "main" ]; then
GROUP="dev" GROUP="dev"
else else

View File

@@ -53,7 +53,7 @@ jobs:
persist-credentials: false persist-credentials: false
- name: Check for file changes - name: Check for file changes
uses: https://github.com/dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4 uses: https://github.com/dorny/paths-filter@v4
id: filter id: filter
with: with:
filters: | filters: |

View File

@@ -199,28 +199,6 @@ jobs:
registry_user: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }} registry_user: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }}
registry_password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }} registry_password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
release-binaries:
name: "Release Binaries"
runs-on: ubuntu-latest
needs:
- build-release
- build-maxperf
permissions:
contents: write
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download binary artifacts
uses: forgejo/download-artifact@v4
with:
pattern: conduwuit*
path: binaries
merge-multiple: true
- name: Create Release and Upload
uses: https://github.com/softprops/action-gh-release@v2
with:
draft: true
files: binaries/*
mirror_images: mirror_images:
name: "Mirror Images" name: "Mirror Images"
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -19,7 +19,9 @@ pub fn delimited<'a, T, I>(mut inputs: I) -> DigestOut
} }
} }
ctx.finalize().into() ctx.finalize()
.try_into()
.expect("failed to return Digest buffer")
} }
/// Sha256 hash (input gather) /// Sha256 hash (input gather)
@@ -36,7 +38,8 @@ pub fn concat<'a, T, I>(inputs: I) -> DigestOut
ctx ctx
}) })
.finalize() .finalize()
.into() .try_into()
.expect("failed to return Digest buffer")
} }
/// Sha256 hash /// Sha256 hash
@@ -47,5 +50,7 @@ pub fn hash<T>(input: T) -> DigestOut
where where
T: AsRef<[u8]>, T: AsRef<[u8]>,
{ {
Sha256::digest(input).into() Sha256::digest(input)
.try_into()
.expect("failed to return Digest buffer")
} }