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
93 changes: 89 additions & 4 deletions .github/workflows/ci-expanded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,50 @@ jobs:
package: "gcc-s390x-linux-gnu g++-s390x-linux-gnu qemu-user-static"
host: "s390x-linux-gnu"
boost: ""
options: "--enable-isystem --build-skip-tests"
options: "--enable-isystem --build-skip-test-run"

- image: macos-26-intel
config: "release"
link: "static"
cc: "clang"
cxx: "clang++"
flags: ""
coverage: ""
boost: "--build-boost"
options: "--enable-isystem"

- image: ubuntu-24.04-arm
config: "release"
link: "static"
cc: "gcc-13"
cxx: "g++-13"
flags: ""
coverage: ""
boost: "--build-boost"
options: "--enable-isystem"

- image: ubuntu-24.04
config: "release"
link: "static"
cc: "gcc-13"
cxx: "g++-13"
flags: "-m32"
coverage: ""
package: "gcc-13-multilib g++-13-multilib"
boost: "--build-boost"
options: "--enable-isystem"

- image: ubuntu-24.04
config: "debug"
link: "static"
cc: "arm-linux-gnueabihf-gcc"
cxx: "arm-linux-gnueabihf-g++"
flags: ""
coverage: ""
package: "gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf"
host: "arm-linux-gnueabihf"
boost: ""
options: "--enable-isystem --build-skip-test-run"

runs-on: ${{ matrix.image }}

Expand Down Expand Up @@ -470,9 +513,11 @@ jobs:
working-directory: ${{ github.workspace }}
run: |
echo 'int main() { return 0; }' > emulation.c
${{ matrix.cc }} emulation.c -o emulation
${{ matrix.cc }} ${{ matrix.flags }} emulation.c -o emulation
file emulation
./emulation
if [[ "${{ matrix.options }}" != *"--build-skip-tests"* && "${{ matrix.options }}" != *"--build-skip-test-run"* ]]; then
./emulation
fi

- name: Install boost headers [cross]
if: ${{ matrix.host }}
Expand Down Expand Up @@ -1530,24 +1575,63 @@ jobs:
platform: "x64"
version: "vs2026"
tests: "*"
options: ""

- image: windows-latest
configuration: "StaticDebug"
platform: "x64"
version: "vs2026"
tests: "*"
options: ""

- image: windows-2025-vs2026
configuration: "StaticRelease"
platform: "x64"
version: "vs2026"
tests: "*"
options: ""

- image: windows-2025-vs2026
configuration: "StaticDebug"
platform: "x64"
version: "vs2026"
tests: "*"
options: ""

- image: windows-latest
configuration: "StaticRelease"
platform: "Win32"
version: "vs2026"
tests: "*"
options: ""

- image: windows-latest
configuration: "StaticRelease"
platform: "x64"
version: "vs2026"
tests: "*"
options: "--build-compiler clang"

- image: windows-11-vs2026-arm
configuration: "StaticRelease"
platform: "ARM64"
version: "vs2026"
tests: "*"
options: ""

- image: windows-latest
configuration: "StaticRelease"
platform: "Win32"
version: "vs2026"
tests: "*"
options: "--build-compiler clang"

- image: windows-11-vs2026-arm
configuration: "StaticRelease"
platform: "ARM64"
version: "vs2026"
tests: "*"
options: "--build-compiler clang"

runs-on: ${{ matrix.image }}

Expand All @@ -1565,7 +1649,7 @@ jobs:
- name: Set msbuild path
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3
with:
msbuild-architecture: x64
msbuild-architecture: ${{ matrix.platform == 'ARM64' && 'arm64' || 'x64' }}

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
Expand Down Expand Up @@ -1646,6 +1730,7 @@ jobs:
--build-platform ${{ matrix.platform }}
--build-version ${{ matrix.version }}
--build-use-local-src
${{ matrix.options }}

- name: Execute tests
shell: powershell
Expand Down
85 changes: 81 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,50 @@ jobs:
package: "gcc-s390x-linux-gnu g++-s390x-linux-gnu qemu-user-static"
host: "s390x-linux-gnu"
boost: ""
options: "--enable-isystem --build-skip-tests"
options: "--enable-isystem --build-skip-test-run"

- image: macos-26-intel
config: "release"
link: "static"
cc: "clang"
cxx: "clang++"
flags: ""
coverage: ""
boost: "--build-boost"
options: "--enable-isystem"

- image: ubuntu-24.04-arm
config: "release"
link: "static"
cc: "gcc-13"
cxx: "g++-13"
flags: ""
coverage: ""
boost: "--build-boost"
options: "--enable-isystem"

- image: ubuntu-24.04
config: "release"
link: "static"
cc: "gcc-13"
cxx: "g++-13"
flags: "-m32"
coverage: ""
package: "gcc-13-multilib g++-13-multilib"
boost: "--build-boost"
options: "--enable-isystem"

- image: ubuntu-24.04
config: "debug"
link: "static"
cc: "arm-linux-gnueabihf-gcc"
cxx: "arm-linux-gnueabihf-g++"
flags: ""
coverage: ""
package: "gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf"
host: "arm-linux-gnueabihf"
boost: ""
options: "--enable-isystem --build-skip-test-run"

runs-on: ${{ matrix.image }}

Expand Down Expand Up @@ -251,9 +294,11 @@ jobs:
working-directory: ${{ github.workspace }}
run: |
echo 'int main() { return 0; }' > emulation.c
${{ matrix.cc }} emulation.c -o emulation
${{ matrix.cc }} ${{ matrix.flags }} emulation.c -o emulation
file emulation
./emulation
if [[ "${{ matrix.options }}" != *"--build-skip-tests"* && "${{ matrix.options }}" != *"--build-skip-test-run"* ]]; then
./emulation
fi

- name: Install boost headers [cross]
if: ${{ matrix.host }}
Expand Down Expand Up @@ -861,18 +906,49 @@ jobs:
platform: "x64"
version: "vs2026"
tests: "*"
options: ""

- image: windows-2025-vs2026
configuration: "StaticRelease"
platform: "x64"
version: "vs2026"
tests: "*"
options: ""

- image: windows-latest
configuration: "StaticRelease"
platform: "Win32"
version: "vs2026"
tests: "*"
options: ""

- image: windows-latest
configuration: "StaticRelease"
platform: "x64"
version: "vs2026"
tests: "*"
options: "--build-compiler clang"

- image: windows-11-vs2026-arm
configuration: "StaticRelease"
platform: "ARM64"
version: "vs2026"
tests: "*"
options: ""

- image: windows-latest
configuration: "StaticRelease"
platform: "Win32"
version: "vs2026"
tests: "*"
options: "--build-compiler clang"

- image: windows-11-vs2026-arm
configuration: "StaticRelease"
platform: "ARM64"
version: "vs2026"
tests: "*"
options: "--build-compiler clang"

runs-on: ${{ matrix.image }}

Expand All @@ -890,7 +966,7 @@ jobs:
- name: Set msbuild path
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3
with:
msbuild-architecture: x64
msbuild-architecture: ${{ matrix.platform == 'ARM64' && 'arm64' || 'x64' }}

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
Expand Down Expand Up @@ -971,6 +1047,7 @@ jobs:
--build-platform ${{ matrix.platform }}
--build-version ${{ matrix.version }}
--build-use-local-src
${{ matrix.options }}

- name: Execute tests
shell: powershell
Expand Down
7 changes: 6 additions & 1 deletion builds/cmake/install-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
# Default: git clone --depth 1 --single-branch
# --build-post-install-clean Clean dependencies after installation (saves space).
# --build-skip-tests Skip test compilation and execution.
# --build-skip-test-run Compile tests without executing them.
# --build-parallel=<int> Number of jobs to run simultaneously.
# Default: supported platforms use nproc/sysctl
# --build-use-local-src Use existing sources in relevant paths.
Expand Down Expand Up @@ -140,6 +141,7 @@ main()
(--build-full-repositories) BUILD_FULL_REPOSITORIES="yes";;
(--build-post-install-clean) BUILD_POST_INSTALL_CLEAN="yes";;
(--build-skip-tests) BUILD_SKIP_TESTS="yes";;
(--build-skip-test-run) BUILD_SKIP_TEST_RUN="yes";;
(--build-parallel=*) PARALLEL="${OPTION#*=}";;
(--build-use-local-src) BUILD_USE_LOCAL_SRC="yes";;
(--prefix=*) PREFIX="${OPTION#*=}";;
Expand Down Expand Up @@ -167,6 +169,7 @@ main()
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-full-repositories/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-post-install-clean/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-skip-tests/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-skip-test-run/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-parallel=*/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-use-local-src/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--prefix=*/}")
Expand Down Expand Up @@ -591,7 +594,7 @@ main()
local SAVE_CPPFLAGS="${CPPFLAGS}"
export CPPFLAGS="${CPPFLAGS} ${libbitcoin_node_FLAGS[@]}"
build_cmake "libbitcoin-node" "builds/cmake" "." "${PARALLEL}" "${libbitcoin_node_OPTIONS[@]}" "${CONFIGURE_OPTIONS_CMAKE[@]}"
if ! [[ "${BUILD_SKIP_TESTS}" == "yes" ]]; then
if ! [[ "${BUILD_SKIP_TESTS}" == "yes" || "${BUILD_SKIP_TEST_RUN}" == "yes" ]]; then
test_cmake "libbitcoin-node" "." "${PARALLEL}"
fi
install_cmake "libbitcoin-node" "."
Expand Down Expand Up @@ -1021,6 +1024,7 @@ display_build_variables()
msg "BUILD_POST_INSTALL_CLEAN : ${BUILD_POST_INSTALL_CLEAN}"
msg "BUILD_USE_LOCAL_SRC : ${BUILD_USE_LOCAL_SRC}"
msg "BUILD_SKIP_TESTS : ${BUILD_SKIP_TESTS}"
msg "BUILD_SKIP_TEST_RUN : ${BUILD_SKIP_TEST_RUN}"
msg "PARALLEL : ${PARALLEL}"
msg "PREFIX : ${PREFIX}"
msg "DISPLAY_VERBOSE : ${DISPLAY_VERBOSE}"
Expand Down Expand Up @@ -1128,6 +1132,7 @@ help()
msg " Default: git clone --depth 1 --single-branch"
msg "--build-post-install-clean Clean dependencies after installation (saves space)."
msg "--build-skip-tests Skip test compilation and execution."
msg "--build-skip-test-run Compile tests without executing them."
msg "--build-parallel=<int> Number of jobs to run simultaneously."
msg " Default: supported platforms use nproc/sysctl"
msg "--build-use-local-src Use existing sources in relevant paths."
Expand Down
7 changes: 6 additions & 1 deletion builds/cmake/install-presets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
# Default: git clone --depth 1 --single-branch
# --build-post-install-clean Clean dependencies after installation (saves space).
# --build-skip-tests Skip test compilation and execution.
# --build-skip-test-run Compile tests without executing them.
# --build-parallel=<int> Number of jobs to run simultaneously.
# Default: supported platforms use nproc/sysctl
# --build-use-local-src Use existing sources in relevant paths.
Expand Down Expand Up @@ -127,6 +128,7 @@ main()
(--build-full-repositories) BUILD_FULL_REPOSITORIES="yes";;
(--build-post-install-clean) BUILD_POST_INSTALL_CLEAN="yes";;
(--build-skip-tests) BUILD_SKIP_TESTS="yes";;
(--build-skip-test-run) BUILD_SKIP_TEST_RUN="yes";;
(--build-parallel=*) PARALLEL="${OPTION#*=}";;
(--build-use-local-src) BUILD_USE_LOCAL_SRC="yes";;
(--hardware-optimized) HARDWARE_OPTIMIZED="yes";;
Expand All @@ -150,6 +152,7 @@ main()
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-full-repositories/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-post-install-clean/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-skip-tests/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-skip-test-run/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-parallel=*/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--build-use-local-src/}")
CONFIGURE_OPTIONS=("${CONFIGURE_OPTIONS[@]/#--hardware-optimized/}")
Expand Down Expand Up @@ -607,7 +610,7 @@ main()
local SAVE_CPPFLAGS="${CPPFLAGS}"
export CPPFLAGS="${CPPFLAGS} ${libbitcoin_node_FLAGS[@]}"
build_preset "libbitcoin-node" "builds/cmake" "." "${PARALLEL}" "${libbitcoin_node_OPTIONS[@]}" "${CONFIGURE_OPTIONS_CMAKE[@]}"
if ! [[ "${BUILD_SKIP_TESTS}" == "yes" ]]; then
if ! [[ "${BUILD_SKIP_TESTS}" == "yes" || "${BUILD_SKIP_TEST_RUN}" == "yes" ]]; then
test_cmake "libbitcoin-node" "." "${PARALLEL}"
fi
install_cmake "libbitcoin-node" "."
Expand Down Expand Up @@ -1099,6 +1102,7 @@ display_build_variables()
msg "BUILD_POST_INSTALL_CLEAN : ${BUILD_POST_INSTALL_CLEAN}"
msg "BUILD_USE_LOCAL_SRC : ${BUILD_USE_LOCAL_SRC}"
msg "BUILD_SKIP_TESTS : ${BUILD_SKIP_TESTS}"
msg "BUILD_SKIP_TEST_RUN : ${BUILD_SKIP_TEST_RUN}"
msg "PARALLEL : ${PARALLEL}"
msg "PREFIX : ${PREFIX}"
msg "DISPLAY_VERBOSE : ${DISPLAY_VERBOSE}"
Expand Down Expand Up @@ -1198,6 +1202,7 @@ help()
msg " Default: git clone --depth 1 --single-branch"
msg "--build-post-install-clean Clean dependencies after installation (saves space)."
msg "--build-skip-tests Skip test compilation and execution."
msg "--build-skip-test-run Compile tests without executing them."
msg "--build-parallel=<int> Number of jobs to run simultaneously."
msg " Default: supported platforms use nproc/sysctl"
msg "--build-use-local-src Use existing sources in relevant paths."
Expand Down
Loading
Loading