Skip to content

Commit 875a511

Browse files
authored
Merge pull request #128 from alexanderwiederin/subtree_6356041e58d1ba86695e2e7c219c68ee5abe583f
subtree: update to latest master (6356041e58d1ba86695e2e7c219c68ee5abe583f)
2 parents c176d28 + f1bc4f2 commit 875a511

File tree

183 files changed

+3577
-4016
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+3577
-4016
lines changed

libbitcoinkernel-sys/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
- New `btck_block_tree_entry_equals` function for comparing BlockTreeEntry objects (096924d39d64)
12+
13+
### Changed
14+
- `data_directory` and `blocks_directory` parameters in `btck_chainstate_manager_options_create` now allow null values to represent empty paths (6657bcbdb4d0)
15+
1016
## [0.1.1] - 2025-24-11
1117

1218
### Fixed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: 'Clear unnecessary files'
2+
description: 'Clear out unnecessary files to make space on the VM'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: Clear unnecessary files
7+
shell: bash
8+
env:
9+
DEBIAN_FRONTEND: noninteractive
10+
run: |
11+
set +o errexit
12+
sudo bash -c '(ionice -c 3 nice -n 19 rm -rf /usr/share/dotnet/ /usr/local/graalvm/ /usr/local/.ghcup/ /usr/local/share/powershell /usr/local/share/chromium /usr/local/lib/android /usr/local/lib/node_modules)&'

libbitcoinkernel-sys/bitcoin/.github/actions/configure-docker/action.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,11 @@ runs:
88
using: 'composite'
99
steps:
1010
- name: Check inputs
11-
shell: bash
11+
shell: python
1212
run: |
1313
# We expect only gha or cirrus as inputs to cache-provider
14-
case "${{ inputs.cache-provider }}" in
15-
gha|cirrus)
16-
;;
17-
*)
18-
echo "::warning title=Unknown input to configure docker action::Provided value was ${{ inputs.cache-provider }}"
19-
;;
20-
esac
14+
if "${{ inputs.cache-provider }}" not in ("gha", "cirrus"):
15+
print("::warning title=Unknown input to configure docker action::Provided value was ${{ inputs.cache-provider }}")
2116
2217
- name: Set up Docker Buildx
2318
uses: docker/setup-buildx-action@v3
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/usr/bin/env python3
2+
# Copyright (c) The Bitcoin Core developers
3+
# Distributed under the MIT software license, see the accompanying
4+
# file COPYING or https://opensource.org/license/mit.
5+
6+
import os
7+
import shlex
8+
import subprocess
9+
import sys
10+
import time
11+
12+
13+
def run(cmd, **kwargs):
14+
print("+ " + shlex.join(cmd), flush=True)
15+
kwargs.setdefault("check", True)
16+
try:
17+
return subprocess.run(cmd, **kwargs)
18+
except Exception as e:
19+
sys.exit(e)
20+
21+
22+
def main():
23+
CONTAINER_NAME = os.environ["CONTAINER_NAME"]
24+
25+
build_cmd = [
26+
"docker", "buildx", "build",
27+
f"--tag={CONTAINER_NAME}",
28+
*shlex.split(os.getenv("DOCKER_BUILD_CACHE_ARG", "")),
29+
"--file=./ci/lint_imagefile",
30+
"."
31+
]
32+
33+
if run(build_cmd, check=False).returncode != 0:
34+
print("Retry building image tag after failure")
35+
time.sleep(3)
36+
run(build_cmd)
37+
38+
extra_env = []
39+
if os.environ["GITHUB_EVENT_NAME"] == "pull_request":
40+
extra_env = ["--env", "LINT_CI_IS_PR=1"]
41+
if os.environ["GITHUB_EVENT_NAME"] != "pull_request" and os.environ["GITHUB_REPOSITORY"] == "bitcoin/bitcoin":
42+
extra_env = ["--env", "LINT_CI_SANITY_CHECK_COMMIT_SIG=1"]
43+
44+
run([
45+
"docker",
46+
"run",
47+
"--rm",
48+
*extra_env,
49+
f"--volume={os.getcwd()}:/bitcoin",
50+
CONTAINER_NAME,
51+
])
52+
53+
54+
if __name__ == "__main__":
55+
main()

0 commit comments

Comments
 (0)