ci: Pass expected_version to build_impl.yml (#2367)

This commit is contained in:
Ayaz Salikhov
2025-07-28 11:31:22 +01:00
committed by GitHub
parent a63805d631
commit 4a4f8842bd
2 changed files with 3 additions and 4 deletions

View File

@@ -77,6 +77,7 @@ jobs:
upload_clio_server: ${{ inputs.upload_clio_server }}
targets: ${{ inputs.targets }}
analyze_build_time: false
expected_version: ${{ inputs.expected_version }}
test:
needs: build

View File

@@ -195,12 +195,10 @@ jobs:
- name: Verify expected version
if: ${{ inputs.expected_version != '' }}
shell: bash
run: |
set -e
EXPECTED_VERSION="clio-${{ inputs.expected_version }}"
if [[ ! -f build/clio_server ]]; then
echo "clio_server binary not found"
exit 1
fi
actual_version=$(./build/clio_server --version)
if [[ "$actual_version" != "$EXPECTED_VERSION" ]]; then
echo "Expected version '$EXPECTED_VERSION', but got '$actual_version'"