mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-10 07:37:59 +02:00
70f632bda8f Merge bitcoin-core/libmultiprocess#265: ci: set LC_ALL in shell scripts 8e8e564259a Merge bitcoin-core/libmultiprocess#249: fixes for race conditions on disconnects 05d34cc2ec3 ci: set LC_ALL in shell scripts e606fd84a8c Merge bitcoin-core/libmultiprocess#264: ci: reduce nproc multipliers ff0eed1bf18 refactor: Use loop variable in type-context.h ff1d8ba172a refactor: Move type-context.h getParams() call closer to use 1dbc59a4aa3 race fix: m_on_cancel called after request finishes 1643d05ba07 test: m_on_cancel called after request finishes f5509a31fcc race fix: getParams() called after request cancel 4a60c39f24a test: getParams() called after request cancel f11ec29ed20 race fix: worker thread destroyed before it is initialized a1d643348f4 test: worker thread destroyed before it is initialized 336023382c4 ci: reduce nproc multipliers b090beb9651 Merge bitcoin-core/libmultiprocess#256: ci: cache gnu32 nix store be8622816da ci: cache gnu32 nix store 975270b619c Merge bitcoin-core/libmultiprocess#263: ci: bump timeout factor to 40 09f10e5a598 ci: bump timeout factor to 40 db8f76ad290 Merge bitcoin-core/libmultiprocess#253: ci: run some Bitcoin Core CI jobs 55a9b557b19 ci: set Bitcoin Core CI test repetition fb0fc84d556 ci: add TSan job with instrumented libc++ 0f29c38725b ci: add Bitcoin Core IPC tests (ASan + macOS) 3f64320315d Merge bitcoin-core/libmultiprocess#262: ci: enable clang-tidy in macOS job, use nullptr cd9f8bdc9f0 Merge bitcoin-core/libmultiprocess#258: log: add socket connected info message and demote destroy logs to debug b5d6258a42f Merge bitcoin-core/libmultiprocess#255: fix: use unsigned char cast and sizeof in LogEscape escape sequence d94688e2c32 Merge bitcoin-core/libmultiprocess#251: Improved CustomBuildField for std::optional in IPC/libmultiprocess a9499fad755 mp: use nullptr with pthread_threadid_np f499e37850f ci: enable clang-tidy in macOS job 98f1352159d log: add socket connected info message and demote destroy logs to debug 554a481ea73 fix: use unsigned char cast and sizeof in LogEscape escape sequence 1977b9f3f65 Use std::forward in CustomBuildField for std::optional to allow move semantics, resolves FIXME 22bec918c97 Merge bitcoin-core/libmultiprocess#247: type-map: Work around LLVM 22 "out of bounds index" error 8a5e3ae6ed2 Merge bitcoin-core/libmultiprocess#242: proxy-types: add CustomHasField hook to map Cap'n Proto values to null C++ values e8d35246918 Merge bitcoin-core/libmultiprocess#246: doc: Bump version 8 > 9 97d877053b6 proxy-types: add CustomHasField hook for nullable decode paths 8c2f10252c9 refactor: add missing includes to mp/type-data.h b1638aceb40 doc: Bump version 8 > 9 f61af487217 type-map: Work around LLVM 22 "out of bounds index" error git-subtree-dir: src/ipc/libmultiprocess git-subtree-split: 70f632bda8f80449b6240f98da768206a535a04e
184 lines
5.5 KiB
YAML
184 lines
5.5 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build-netbsd:
|
|
runs-on: ubuntu-latest
|
|
name: build • netbsd ${{ matrix.release }}
|
|
defaults:
|
|
run:
|
|
shell: netbsd {0}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Test all supported releases.
|
|
# See https://www.netbsd.org/releases/.
|
|
include:
|
|
- release: 9.4
|
|
capnproto-cppflags: 'CPPFLAGS="-DKJ_NO_EXCEPTIONS=0 -DKJ_USE_KQUEUE=0"'
|
|
- release: 10.1
|
|
capnproto-cppflags: 'CPPFLAGS="-DKJ_NO_EXCEPTIONS=0"'
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Start NetBSD VM
|
|
uses: vmactions/netbsd-vm@v1
|
|
with:
|
|
release: ${{ matrix.release }}
|
|
# The installed compiler version must match the CXX variable
|
|
# defined in `ci/configs/netbsd.bash`.
|
|
prepare: |
|
|
pkg_add cmake ninja-build gcc14
|
|
# capnproto prerequisites.
|
|
# See the following "Install capnproto" step.
|
|
run: |
|
|
set -e
|
|
pkg_add digest libtool-base mktools pkgconf cwrappers
|
|
pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities
|
|
cd /usr
|
|
cvs -danoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P \
|
|
pkgsrc/devel/capnproto \
|
|
pkgsrc/devel/libtool-base \
|
|
pkgsrc/devel/pkgconf \
|
|
pkgsrc/devel/zlib \
|
|
`# gcc15 is referenced here because the pkgsrc framework requires lang/gcc15/version.mk to exist` \
|
|
`# during the "make install" step below, even though we compile our project with gcc14.` \
|
|
pkgsrc/lang/gcc15 \
|
|
pkgsrc/mk \
|
|
pkgsrc/pkgtools \
|
|
pkgsrc/security/openssl \
|
|
pkgsrc/sysutils/install-sh/files
|
|
sync: 'rsync'
|
|
copyback: false
|
|
|
|
- name: Install capnproto
|
|
run: |
|
|
cd /usr/pkgsrc/devel/capnproto/
|
|
unset PKG_PATH
|
|
make ${{ matrix.capnproto-cppflags }} install
|
|
|
|
- name: Run CI script
|
|
run: |
|
|
cd ${{ github.workspace }}
|
|
CI_CONFIG="ci/configs/netbsd.bash" bash ci/scripts/ci.sh
|
|
|
|
build-openbsd:
|
|
runs-on: ubuntu-latest
|
|
name: build • openbsd
|
|
defaults:
|
|
run:
|
|
shell: openbsd {0}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Start OpenBSD VM
|
|
uses: vmactions/openbsd-vm@v1
|
|
with:
|
|
prepare: |
|
|
pkg_add -v cmake ninja bash capnproto
|
|
sync: 'rsync'
|
|
copyback: false
|
|
|
|
- name: Run CI script
|
|
run: |
|
|
cd ${{ github.workspace }}
|
|
CI_CONFIG="ci/configs/openbsd.bash" bash ci/scripts/ci.sh
|
|
|
|
build-freebsd:
|
|
runs-on: ubuntu-latest
|
|
name: build • freebsd
|
|
defaults:
|
|
run:
|
|
shell: freebsd {0}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Start FreeBSD VM
|
|
uses: vmactions/freebsd-vm@v1
|
|
with:
|
|
prepare: |
|
|
pkg install -y cmake ninja bash capnproto
|
|
sync: 'rsync'
|
|
copyback: false
|
|
|
|
- name: Run CI script
|
|
run: |
|
|
cd ${{ github.workspace }}
|
|
CI_CONFIG="ci/configs/freebsd.bash" bash ci/scripts/ci.sh
|
|
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
name: build • macos
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Install dependencies
|
|
env:
|
|
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
|
|
run: |
|
|
brew install --quiet ninja capnp llvm
|
|
|
|
- name: Run CI script
|
|
run: |
|
|
export PATH="$(brew --prefix llvm)/bin:$PATH"
|
|
CI_CONFIG="ci/configs/macos.bash" bash ci/scripts/ci.sh
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
NIXPKGS_CHANNEL: nixos-25.05
|
|
NIX_EXTRA_CONFIG: |
|
|
keep-env-derivations = true
|
|
keep-outputs = true
|
|
NIX_EXTRA_CONFIG_ACT: |
|
|
sandbox = false
|
|
filter-syscalls = false
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
config: [default, llvm, gnu32, sanitize, olddeps]
|
|
|
|
name: build • ${{ matrix.config }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Determine CI configuration
|
|
id: config
|
|
env:
|
|
CI_CONFIG: ci/configs/${{ matrix.config }}.bash
|
|
run: ci/scripts/config.sh
|
|
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v31 # 2025-05-27, from https://github.com/cachix/install-nix-action/tags
|
|
with:
|
|
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ steps.config.outputs.nixpkgs_rev }}.tar.gz
|
|
# Act executes inside an unprivileged container (Docker or Podman),
|
|
# so KVM support isn't available.
|
|
enable_kvm: "${{ github.actor != 'nektos/act' }}"
|
|
extra_nix_config: |
|
|
${{ env.NIX_EXTRA_CONFIG }}
|
|
${{ github.actor == 'nektos/act' && env.NIX_EXTRA_CONFIG_ACT || '' }}
|
|
|
|
- name: Cache Nix store
|
|
if: steps.config.outputs.cache_nix_store == 'true'
|
|
uses: nix-community/cache-nix-action@v7
|
|
with:
|
|
primary-key: nix-${{ runner.os }}-${{ matrix.config }}-${{ steps.config.outputs.nixpkgs_rev }}-${{ hashFiles('shell.nix', 'ci/patches/*.patch', format('ci/configs/{0}.bash', matrix.config)) }}
|
|
restore-prefixes-first-match: |
|
|
nix-${{ runner.os }}-${{ matrix.config }}-${{ steps.config.outputs.nixpkgs_rev }}-
|
|
nix-${{ runner.os }}-${{ matrix.config }}-
|
|
nix-${{ runner.os }}-
|
|
gc-max-store-size-linux: 10G
|
|
|
|
- name: Run CI script
|
|
env:
|
|
CI_CONFIG: ci/configs/${{ matrix.config }}.bash
|
|
run: ci/scripts/run.sh
|