Skip to content

Commit 14b11a6

Browse files
ci(candidates): a candidate is built with mcpp from MCPP_SOURCE_REF when the variable is set (cross-validation before an mcpp release)
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
1 parent 5227b8c commit 14b11a6

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎.github/workflows/xpkgindex-update.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ concurrency:
2626
env:
2727
PYTHONUTF8: '1'
2828
MCPP_VERSION: '2026.10.26.1'
29+
# CROSS-VALIDATION BEFORE A RELEASE: a candidate that needs an mcpp newer
30+
# than the pin (its package states the floor) is built with mcpp built from
31+
# this branch of mcpp-community/mcpp, as openkal-compat.yml measures with it.
32+
# Empty in an ordinary run.
33+
MCPP_SOURCE_REF: ${{ vars.MCPP_SOURCE_REF || '' }}
2934
MCPP_INDEX_MIRROR: GLOBAL
3035

3136
jobs:
@@ -204,6 +209,19 @@ jobs:
204209
else
205210
echo "MCPP=$root/bin/mcpp" >> "$GITHUB_ENV"
206211
fi
212+
- name: The mcpp under review, built from MCPP_SOURCE_REF when it is set
213+
if: env.MCPP_SOURCE_REF != ''
214+
shell: bash
215+
run: |
216+
src="$RUNNER_TEMP/mcpp-src"
217+
git clone --quiet --depth 1 --branch "$MCPP_SOURCE_REF" https://github.com/mcpp-community/mcpp.git "$src"
218+
rm -f "$src/.xlings.json"
219+
( cd "$src" && "$MCPP" build --release )
220+
built=$(find "$src/target" -type f \( -name mcpp -o -name mcpp.exe \) -path '*/bin/*' | head -1)
221+
[ -n "$built" ] || { echo "::error::mcpp did not build from $MCPP_SOURCE_REF"; exit 1; }
222+
if [[ "$RUNNER_OS" == Windows ]]; then built=$(cygpath -m "$built"); fi
223+
echo "MCPP=$built" >> "$GITHUB_ENV"
224+
echo "under review: $("$built" --version) (from $MCPP_SOURCE_REF)"
207225
- name: Install macOS ODBC development headers
208226
if: runner.os == 'macOS' && matrix.id == 'compat:nanodbc'
209227
run: brew install libiodbc

0 commit comments

Comments
 (0)