Skip to content

LLM inference in C/C++

C++ ggml

ci : restore release.yml check during make-release.yml (#27247)

Georgi Gerganovd83f72d46328
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b2092d12dd..e0ebb3ccb1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@ include(CheckIncludeFileCXX)
### llama.cpp version
set(LLAMA_VERSION_MAJOR 0)
set(LLAMA_VERSION_MINOR 1)
-set(LLAMA_VERSION_PATCH 0)
+set(LLAMA_VERSION_PATCH 1)
set(LLAMA_VERSION_BASE "${LLAMA_VERSION_MAJOR}.${LLAMA_VERSION_MINOR}.${LLAMA_VERSION_PATCH}")
# whether this is a development/nightly build
diff --git a/scripts/make-release-checks.sh b/scripts/make-release-checks.sh
index 6b2d547864..bc575e5a46 100755
--- a/scripts/make-release-checks.sh
+++ b/scripts/make-release-checks.sh
@@ -71,6 +71,26 @@ if git ls-remote --tags origin "${VERSION}" | grep -q "${VERSION}"; then
fi
echo "Tag ${VERSION} does not exist on remote - OK"
+echo "Checking release.yml status for commit ${SHA}..."
+if [[ -z "${GITHUB_REPOSITORY:-}" ]]; then
+ echo "Warning: GITHUB_REPOSITORY not set - skipping CI check (local run)"
+else
+ RUNS=$(gh api "repos/${GITHUB_REPOSITORY}/actions/workflows/release.yml/runs?per_page=100" \
+ --jq "[.workflow_runs[] | select(.head_sha == \"${SHA}\" and .conclusion == \"success\")] | length")
+ if [[ "$RUNS" -eq 0 ]]; then
+ if [[ "$DRY_RUN" == "true" ]]; then
+ echo "Warning: no successful release.yml run found for HEAD (${SHA}) (dry run, continuing)."
+ CHECKS_PASSED=false
+ else
+ echo "Error: no successful release.yml run found for HEAD (${SHA})"
+ echo "The nightly build must complete successfully before making a release."
+ exit 1
+ fi
+ else
+ echo "Found successful release.yml run for HEAD."
+ fi
+fi
+
MAJOR=$(grep "set(GGML_VERSION_MAJOR" "$REPO_ROOT/ggml/CMakeLists.txt" | grep -oP '\d+')
MINOR=$(grep "set(GGML_VERSION_MINOR" "$REPO_ROOT/ggml/CMakeLists.txt" | grep -oP '\d+')
PATCH=$(grep "set(GGML_VERSION_PATCH" "$REPO_ROOT/ggml/CMakeLists.txt" | grep -oP '\d+')