Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/actions/build-sim/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ runs:
cd test
./setup_environment.sh --"${{ inputs.name }}"
cd ..
# Remove .git directories to shrink the archive
for p in ${{ inputs.paths }}; do
# Skip speculos: it uses setuptools_scm which requires .git for version detection
if [[ "$p" != *speculos* ]]; then
find "$p" -name ".git" -type d -exec rm -rf {} + 2>/dev/null || true
fi
done
tar -czf "${{ inputs.archive }}.tar.gz" ${{ inputs.paths }}
- uses: actions/upload-artifact@v4
Expand Down
13 changes: 4 additions & 9 deletions .github/actions/install-sim/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@ runs:

- if: inputs.device == 'coldcard'
shell: bash
env:
# Keep in sync with test/setup_environment.sh
COLDCARD_VERSION: "2025-09-30T1238-v5.4.4"
run: |
apt-get update
apt-get install -y libpcsclite-dev libusb-1.0-0 swig
git config --global user.email "ci@ci.com"
git config --global user.name "ci"
# Note: cannot use --shallow-submodules because lwip submodule on git.savannah.gnu.org doesn't support it
pushd test/work; git clone --recursive --depth 1 --branch ${COLDCARD_VERSION} https://github.com/Coldcard/firmware.git; popd
tar -xvf coldcard-mpy.tar.gz
pushd test/work/firmware; git am ../../data/coldcard-multisig.patch; popd

# Extract the archive - this includes the full firmware directory
tar -xvf coldcard-firmware.tar.gz

poetry run pip install -r test/work/firmware/requirements.txt
pip install -r test/work/firmware/requirements.txt
poetry run pip install pysdl2-dll
Expand Down
2 changes: 1 addition & 1 deletion .github/sim-build-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{ "name": "trezor-t", "archive": "trezor-firmware", "paths": "test/work/trezor-firmware" }
],
"coldcard": [
{ "name": "coldcard", "archive": "coldcard-mpy", "paths": "test/work/firmware/external/micropython/ports/unix/coldcard-mpy test/work/firmware/unix/coldcard-mpy test/work/firmware/unix/l-mpy test/work/firmware/unix/l-port" }
{ "name": "coldcard", "archive": "coldcard-firmware", "paths": "test/work/firmware" }
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could expand this JSON to include paths that can be pruned before archiving, if storage costs are an issue. But that's tedious to maintain.

],
"bitbox": [
{ "name": "bitbox01", "archive": "mcu", "paths": "test/work/mcu" },
Expand Down