mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Update Matrix Rust SDK to 26.10.05-nightly (#7844)
* Update Matrix Rust SDK to 26.10.01-nightly * Add ivy repository for nightly SDK binding versions * Fix API breaks * Make sure we can't release a version with a `-nightly` SDK version * Fix typo Co-authored-by: Benoit Marty <benoitm@element.io> * Update Matrix Rust SDK to 26.10.05-nightly --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Jorge Martín <jorgem@element.io> Co-authored-by: Benoit Marty <benoitm@element.io>
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2026 Element Creations Ltd.
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||
# Please see LICENSE files in the repository root for full details.
|
||||
|
||||
# Fails if the matrix_sdk dependency uses a "-nightly" version, which must never be released.
|
||||
|
||||
versionsFile="$(dirname "$0")/../../gradle/libs.versions.toml"
|
||||
|
||||
sdkLine=$(grep -E '^matrix_sdk[[:space:]]*=' "${versionsFile}")
|
||||
if [[ -z "${sdkLine}" ]]; then
|
||||
echo "Fatal: could not find the matrix_sdk dependency in ${versionsFile}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "${sdkLine}" == *-nightly* ]]; then
|
||||
echo "Fatal: the matrix_sdk dependency uses a nightly version, which cannot be released:"
|
||||
echo " ${sdkLine}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "matrix_sdk dependency is not a nightly version."
|
||||
@@ -74,6 +74,9 @@ if [[ ! -d ${buildToolsPath} ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check that the Matrix Rust SDK is not a nightly version
|
||||
./tools/release/check_no_nightly_sdk.sh || exit 1
|
||||
|
||||
# Check if git flow is enabled
|
||||
gitFlowDevelop=$(git config gitflow.branch.develop)
|
||||
if [[ ${gitFlowDevelop} != "" ]]
|
||||
|
||||
@@ -94,6 +94,9 @@ if [[ ! -d ${buildToolsPath} ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check that the Matrix Rust SDK is not a nightly version
|
||||
./tools/release/check_no_nightly_sdk.sh || exit 1
|
||||
|
||||
# Check that there is no unmerged PR with the label "Z-NextRelease", else exit
|
||||
unmergedPrs=$(gh pr list --repo element-hq/element-x-android --label "Z-NextRelease" --state open --json title,url -q '.[] | "\(.url): \(.title)"')
|
||||
if [[ ${unmergedPrs} != "" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user