Skip to content

Commit a736c64

Browse files
committed
test: pin the module probe to a real released binary
1 parent 7e5d6ee commit a736c64

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎.github/workflows/probe-first-run.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,22 @@ jobs:
6161
- uses: ./.github/actions/setup-macos-llvm
6262
with:
6363
image: macos-15
64+
- name: Select a real pinned mcpp binary rather than a workspace shim
65+
shell: bash
66+
env:
67+
GH_TOKEN: ${{ github.token }}
68+
run: |
69+
mkdir -p "$RUNNER_TEMP/module-release"
70+
gh release download v2026.10.17.1 --repo mcpp-community/mcpp --pattern mcpp-2026.10.17.1-macosx-arm64.tar.gz --pattern mcpp-2026.10.17.1-macosx-arm64.tar.gz.sha256 --dir "$RUNNER_TEMP/module-release"
71+
python3 - <<'PY'
72+
import hashlib, os, pathlib, shutil
73+
root = pathlib.Path(os.environ['RUNNER_TEMP']) / 'module-release'
74+
archive = root / 'mcpp-2026.10.17.1-macosx-arm64.tar.gz'
75+
assert hashlib.sha256(archive.read_bytes()).hexdigest() == archive.with_name(archive.name + '.sha256').read_text().split()[0]
76+
shutil.unpack_archive(str(archive), str(root))
77+
PY
78+
echo "MCPP=$RUNNER_TEMP/module-release/mcpp-2026.10.17.1-macosx-arm64/bin/mcpp" >> "$GITHUB_ENV"
79+
echo "MCPP_TOOLCHAIN=llvm@$MCPP_LLVM_VER" >> "$GITHUB_ENV"
6480
- name: Prepare the existing sandbox before offline build probes
6581
timeout-minutes: 4
6682
shell: bash

0 commit comments

Comments
 (0)