Skip to content

update services + add CI - #6

Merged
zoedberg merged 9 commits into
masterfrom
ci
Nov 16, 2026
Merged

zoedberg merged 9 commits into
masterfrom
ci

Conversation

@zoedberg

Copy link
Copy Markdown
Member

No description provided.

nicbus and others added 8 commits November 16, 2026 11:40
Switch the cross submodule to the RGB-Tools fork, which patches xargo
before installing it, as recent rust versions fail to build it.
Add two GitHub Actions workflows:
- Build: builds the wheel for each supported platform with the release build
  system, builds the sdist and checks the rust sources it packages still
  build, installs each wheel on its platform and calls into the bindings,
  then runs the demo notebook on regtest with the freshly built linux wheel
- Lint: runs black, flake8 and pylint on the python scripts, plus shellcheck

To support this:
- the demo notebook funds its wallets and mines blocks on its own, through
  the new regtest.py helpers, so it can be executed unattended (and no longer
  requires switching to the console when run interactively)
- services.sh gains a "test" command, that executes the notebook with
  nbconvert and fails if any cell raises, and waits for services with a
  timeout instead of looping forever
- the demo image accepts a RGB_LIB_SPEC build arg, to install a locally built
  wheel instead of the released package
- build.py can pass extra options to the cross image build (used to cache its
  layers in CI) and ignores GITHUB_REF_*, which the cross xtask would
  otherwise use to derive image tags
- build_packages.py gains build_wheel(), to build a single platform
The cross-toolchains commit the build script resets to is newer than the
one pinned by the cross submodule, so it's missing when submodules are
cloned shallow (e.g. by actions/checkout). Fetch the cross and
cross-toolchains commits if missing, using full hashes as fetching by
short hash is not supported.
The native image (used for the host platform target) builds qemu from
source, downloading util-linux and libcap from kernel.org, whose origin
host is not reachable from the GitHub Actions runners, so the build fails
after exhausting the curl retries. Patch the downloads to use the
kernel.org CDN, which is reachable.
electrs polls bitcoind as soon as it starts and exits if the RPC
interface is not accepting connections yet, which makes the demo fail
intermittently (it only waits for the bitcoind container to have been
started). Start it once bitcoind reports healthy instead, checking the
image healthcheck often enough to not delay the startup.
@zoedberg
zoedberg merged commit b0f428c into master Nov 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants