Skip to content

Commit 8ff2735

Browse files
committed
ci: pin cross-repo emulator compatibility
1 parent 844a2a3 commit 8ff2735

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@ jobs:
44
emulator-build-test:
55
docker:
66
- image: circleci/python:3.7 # upgrade to cimg/python:3.12 if you like
7+
environment:
8+
# Exact 7.14.2 production-code baseline. Later firmware commits on the
9+
# release branch change only CI/reporting and the durable Python pin.
10+
FIRMWARE_SHA: 5109f395413647df47237b8e69ad541faacb29df
711
steps:
812
# ────────────────────────────────────────────────────────────────
9-
# 1) Clone the current branch of python-keepkey via HTTPS
13+
# 1) Fetch the exact triggering python-keepkey commit via HTTPS
1014
# ────────────────────────────────────────────────────────────────
1115
- run:
12-
name: Clone python-keepkey (current branch)
16+
name: Checkout exact python-keepkey revision
1317
command: |
14-
git clone --depth 1 -b "$CIRCLE_BRANCH" https://github.com/keepkey/python-keepkey.git .pykk
15-
cd .pykk && git submodule update --init --recursive
18+
git init .pykk
19+
git -C .pykk remote add origin https://github.com/keepkey/python-keepkey.git
20+
git -C .pykk fetch --depth 1 origin "$CIRCLE_SHA1"
21+
git -C .pykk checkout --detach FETCH_HEAD
22+
git -C .pykk submodule update --init --recursive
1623
1724
# ────────────────────────────────────────────────────────────────
1825
# 2) Grab firmware repo and inject our fresh python-keepkey copy
@@ -27,8 +34,11 @@ jobs:
2734
# Move python-keepkey out of the way
2835
mv .pykk ../
2936
30-
# Clone firmware repository (expects $FIRMWARE_REPO env var)
31-
git clone --depth 1 -b master "$FIRMWARE_REPO" .
37+
# Fetch the exact reviewed 7.14.2 production-code baseline.
38+
git init .
39+
git remote add origin "$FIRMWARE_REPO"
40+
git fetch --depth 1 origin "$FIRMWARE_SHA"
41+
git checkout --detach FETCH_HEAD
3242
3343
# Initialise firmware submodules
3444
git submodule update --init --recursive

0 commit comments

Comments
 (0)