mirror of https://github.com/bitcoin/bitcoin.git
Merge e0c6325323
into de1dc6b47b
This commit is contained in:
commit
112cf40370
|
@ -186,379 +186,458 @@ jobs:
|
||||||
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
|
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
|
||||||
key: ${{ github.job }}-${{ matrix.job-type }}-ccache-${{ github.run_id }}
|
key: ${{ github.job }}-${{ matrix.job-type }}-ccache-${{ github.run_id }}
|
||||||
|
|
||||||
windows-native-dll:
|
# windows-native-dll:
|
||||||
name: ${{ matrix.job-name }}
|
# name: ${{ matrix.job-name }}
|
||||||
runs-on: windows-2022
|
# runs-on: windows-2022
|
||||||
|
#
|
||||||
|
# if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
|
||||||
|
#
|
||||||
|
# env:
|
||||||
|
# PYTHONUTF8: 1
|
||||||
|
# TEST_RUNNER_TIMEOUT_FACTOR: 40
|
||||||
|
#
|
||||||
|
# strategy:
|
||||||
|
# fail-fast: false
|
||||||
|
# matrix:
|
||||||
|
# job-type: [standard, fuzz]
|
||||||
|
# include:
|
||||||
|
# - job-type: standard
|
||||||
|
# generate-options: '-DBUILD_GUI=ON -DWITH_ZMQ=ON -DBUILD_BENCH=ON -DWERROR=ON'
|
||||||
|
# job-name: 'Windows native, VS 2022'
|
||||||
|
# - job-type: fuzz
|
||||||
|
# generate-options: '-DVCPKG_MANIFEST_NO_DEFAULT_FEATURES=ON -DVCPKG_MANIFEST_FEATURES="wallet" -DBUILD_GUI=OFF -DBUILD_FOR_FUZZING=ON -DWERROR=ON'
|
||||||
|
# job-name: 'Windows native, fuzz, VS 2022'
|
||||||
|
#
|
||||||
|
# steps:
|
||||||
|
# - *CHECKOUT
|
||||||
|
#
|
||||||
|
# - name: Configure Developer Command Prompt for Microsoft Visual C++
|
||||||
|
# # Using microsoft/setup-msbuild is not enough.
|
||||||
|
# uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
# with:
|
||||||
|
# arch: x64
|
||||||
|
#
|
||||||
|
# - name: Get tool information
|
||||||
|
# shell: pwsh
|
||||||
|
# run: |
|
||||||
|
# cmake -version | Tee-Object -FilePath "cmake_version"
|
||||||
|
# Write-Output "---"
|
||||||
|
# msbuild -version | Tee-Object -FilePath "msbuild_version"
|
||||||
|
# $env:VCToolsVersion | Tee-Object -FilePath "toolset_version"
|
||||||
|
# py -3 --version
|
||||||
|
# Write-Host "PowerShell version $($PSVersionTable.PSVersion.ToString())"
|
||||||
|
# bash --version
|
||||||
|
#
|
||||||
|
# - name: Using vcpkg with MSBuild
|
||||||
|
# run: |
|
||||||
|
# echo "set(VCPKG_BUILD_TYPE release)" >> "${VCPKG_INSTALLATION_ROOT}/triplets/x64-windows.cmake"
|
||||||
|
# # Workaround for libevent, which requires CMake 3.1 but is incompatible with CMake >= 4.0.
|
||||||
|
# sed -i '1s/^/set(ENV{CMAKE_POLICY_VERSION_MINIMUM} 3.5)\n/' "${VCPKG_INSTALLATION_ROOT}/scripts/ports.cmake"
|
||||||
|
#
|
||||||
|
# - name: vcpkg tools cache
|
||||||
|
# uses: actions/cache@v4
|
||||||
|
# with:
|
||||||
|
# path: C:/vcpkg/downloads/tools
|
||||||
|
# key: ${{ github.job }}-vcpkg-tools
|
||||||
|
#
|
||||||
|
# - name: Restore vcpkg binary cache
|
||||||
|
# uses: actions/cache/restore@v4
|
||||||
|
# id: vcpkg-binary-cache
|
||||||
|
# with:
|
||||||
|
# path: ~/AppData/Local/vcpkg/archives
|
||||||
|
# key: ${{ github.job }}-vcpkg-binary-${{ hashFiles('cmake_version', 'msbuild_version', 'toolset_version', 'vcpkg.json') }}
|
||||||
|
#
|
||||||
|
# - name: Generate build system
|
||||||
|
# run: |
|
||||||
|
# cmake -B build -Werror=dev --preset vs2022 -DCMAKE_TOOLCHAIN_FILE="${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ${{ matrix.generate-options }}
|
||||||
|
#
|
||||||
|
# - name: Save vcpkg binary cache
|
||||||
|
# uses: actions/cache/save@v4
|
||||||
|
# if: github.event_name != 'pull_request' && steps.vcpkg-binary-cache.outputs.cache-hit != 'true' && matrix.job-type == 'standard'
|
||||||
|
# with:
|
||||||
|
# path: ~/AppData/Local/vcpkg/archives
|
||||||
|
# key: ${{ github.job }}-vcpkg-binary-${{ hashFiles('cmake_version', 'msbuild_version', 'toolset_version', 'vcpkg.json') }}
|
||||||
|
#
|
||||||
|
# - name: Build
|
||||||
|
# working-directory: build
|
||||||
|
# run: |
|
||||||
|
# cmake --build . -j $NUMBER_OF_PROCESSORS --config Release
|
||||||
|
#
|
||||||
|
# - name: Get bitcoind manifest
|
||||||
|
# if: matrix.job-type == 'standard'
|
||||||
|
# working-directory: build
|
||||||
|
# run: |
|
||||||
|
# mt.exe -nologo -inputresource:bin/Release/bitcoind.exe -out:bitcoind.manifest
|
||||||
|
# cat bitcoind.manifest
|
||||||
|
# echo
|
||||||
|
# mt.exe -nologo -inputresource:bin/Release/bitcoind.exe -validate_manifest
|
||||||
|
#
|
||||||
|
# - name: Run test suite
|
||||||
|
# if: matrix.job-type == 'standard'
|
||||||
|
# working-directory: build
|
||||||
|
# env:
|
||||||
|
# QT_PLUGIN_PATH: '${{ github.workspace }}\build\vcpkg_installed\x64-windows\Qt6\plugins'
|
||||||
|
# run: |
|
||||||
|
# ctest --output-on-failure --stop-on-failure -j $NUMBER_OF_PROCESSORS -C Release
|
||||||
|
#
|
||||||
|
# - name: Run functional tests
|
||||||
|
# if: matrix.job-type == 'standard'
|
||||||
|
# working-directory: build
|
||||||
|
# env:
|
||||||
|
# BITCOIN_BIN: '${{ github.workspace }}\build\bin\Release\bitcoin.exe'
|
||||||
|
# BITCOIND: '${{ github.workspace }}\build\bin\Release\bitcoind.exe'
|
||||||
|
# BITCOINCLI: '${{ github.workspace }}\build\bin\Release\bitcoin-cli.exe'
|
||||||
|
# BITCOINTX: '${{ github.workspace }}\build\bin\Release\bitcoin-tx.exe'
|
||||||
|
# BITCOINUTIL: '${{ github.workspace }}\build\bin\Release\bitcoin-util.exe'
|
||||||
|
# BITCOINWALLET: '${{ github.workspace }}\build\bin\Release\bitcoin-wallet.exe'
|
||||||
|
# TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
|
||||||
|
# run: py -3 test/functional/test_runner.py --jobs $NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix="${RUNNER_TEMP}" --combinedlogslen=99999999 --timeout-factor=${TEST_RUNNER_TIMEOUT_FACTOR} ${TEST_RUNNER_EXTRA}
|
||||||
|
#
|
||||||
|
# - name: Clone corpora
|
||||||
|
# if: matrix.job-type == 'fuzz'
|
||||||
|
# run: |
|
||||||
|
# git clone --depth=1 https://github.com/bitcoin-core/qa-assets "${RUNNER_TEMP}/qa-assets"
|
||||||
|
# cd "${RUNNER_TEMP}/qa-assets"
|
||||||
|
# echo "Using qa-assets repo from commit ..."
|
||||||
|
# git log -1
|
||||||
|
#
|
||||||
|
# - name: Run fuzz tests
|
||||||
|
# if: matrix.job-type == 'fuzz'
|
||||||
|
# working-directory: build
|
||||||
|
# env:
|
||||||
|
# BITCOINFUZZ: '${{ github.workspace }}\build\bin\Release\fuzz.exe'
|
||||||
|
# run: |
|
||||||
|
# py -3 test/fuzz/test_runner.py --par $NUMBER_OF_PROCESSORS --loglevel DEBUG "${RUNNER_TEMP}/qa-assets/fuzz_corpora"
|
||||||
|
#
|
||||||
|
# windows-cross:
|
||||||
|
# name: 'Linux->Windows cross, no tests'
|
||||||
|
# needs: runners
|
||||||
|
# runs-on: ${{ needs.runners.outputs.provider == 'cirrus' && 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm' || 'ubuntu-24.04' }}
|
||||||
|
# if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
|
||||||
|
#
|
||||||
|
# env:
|
||||||
|
# FILE_ENV: './ci/test/00_setup_env_win64.sh'
|
||||||
|
# DANGER_CI_ON_HOST_FOLDERS: 1
|
||||||
|
#
|
||||||
|
# steps:
|
||||||
|
# - *CHECKOUT
|
||||||
|
#
|
||||||
|
# - name: Configure environment
|
||||||
|
# uses: ./.github/actions/configure-environment
|
||||||
|
#
|
||||||
|
# - name: Restore caches
|
||||||
|
# id: restore-cache
|
||||||
|
# uses: ./.github/actions/restore-caches
|
||||||
|
#
|
||||||
|
# - name: Configure Docker
|
||||||
|
# uses: ./.github/actions/configure-docker
|
||||||
|
# with:
|
||||||
|
# cache-provider: ${{ needs.runners.outputs.provider }}
|
||||||
|
#
|
||||||
|
# - name: CI script
|
||||||
|
# run: ./ci/test_run_all.sh
|
||||||
|
#
|
||||||
|
# - name: Save caches
|
||||||
|
# uses: ./.github/actions/save-caches
|
||||||
|
#
|
||||||
|
# - name: Upload built executables
|
||||||
|
# uses: actions/upload-artifact@v4
|
||||||
|
# with:
|
||||||
|
# name: x86_64-w64-mingw32-executables-${{ github.run_id }}
|
||||||
|
# path: |
|
||||||
|
# ${{ env.BASE_BUILD_DIR }}/bin/*.exe
|
||||||
|
# ${{ env.BASE_BUILD_DIR }}/src/secp256k1/bin/*.exe
|
||||||
|
# ${{ env.BASE_BUILD_DIR }}/src/univalue/*.exe
|
||||||
|
# ${{ env.BASE_BUILD_DIR }}/test/config.ini
|
||||||
|
#
|
||||||
|
# windows-native-test:
|
||||||
|
# name: 'Windows, test cross-built'
|
||||||
|
# runs-on: windows-2022
|
||||||
|
# needs: windows-cross
|
||||||
|
#
|
||||||
|
# env:
|
||||||
|
# PYTHONUTF8: 1
|
||||||
|
# TEST_RUNNER_TIMEOUT_FACTOR: 40
|
||||||
|
#
|
||||||
|
# steps:
|
||||||
|
# - *CHECKOUT
|
||||||
|
#
|
||||||
|
# - name: Download built executables
|
||||||
|
# uses: actions/download-artifact@v4
|
||||||
|
# with:
|
||||||
|
# name: x86_64-w64-mingw32-executables-${{ github.run_id }}
|
||||||
|
#
|
||||||
|
# - name: Run bitcoind.exe
|
||||||
|
# run: ./bin/bitcoind.exe -version
|
||||||
|
#
|
||||||
|
# - name: Find mt.exe tool
|
||||||
|
# shell: pwsh
|
||||||
|
# run: |
|
||||||
|
# $sdk_dir = (Get-ItemProperty 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots' -Name KitsRoot10).KitsRoot10
|
||||||
|
# $sdk_latest = (Get-ChildItem "$sdk_dir\bin" -Directory | Where-Object { $_.Name -match '^\d+\.\d+\.\d+\.\d+$' } | Sort-Object Name -Descending | Select-Object -First 1).Name
|
||||||
|
# "MT_EXE=${sdk_dir}bin\${sdk_latest}\x64\mt.exe" >> $env:GITHUB_ENV
|
||||||
|
#
|
||||||
|
# - name: Get bitcoind manifest
|
||||||
|
# shell: pwsh
|
||||||
|
# run: |
|
||||||
|
# & $env:MT_EXE -nologo -inputresource:bin\bitcoind.exe -out:bitcoind.manifest
|
||||||
|
# Get-Content bitcoind.manifest
|
||||||
|
# & $env:MT_EXE -nologo -inputresource:bin\bitcoind.exe -validate_manifest
|
||||||
|
#
|
||||||
|
# - name: Run unit tests
|
||||||
|
# # Can't use ctest here like other jobs as we don't have a CMake build tree.
|
||||||
|
# run: |
|
||||||
|
# ./bin/test_bitcoin.exe -l test_suite # Intentionally run sequentially here, to catch test case failures caused by dirty global state from prior test cases.
|
||||||
|
# ./src/secp256k1/bin/exhaustive_tests.exe
|
||||||
|
# ./src/secp256k1/bin/noverify_tests.exe
|
||||||
|
# ./src/secp256k1/bin/tests.exe
|
||||||
|
# ./src/univalue/object.exe
|
||||||
|
# ./src/univalue/unitester.exe
|
||||||
|
#
|
||||||
|
# - name: Run benchmarks
|
||||||
|
# run: ./bin/bench_bitcoin.exe -sanity-check
|
||||||
|
#
|
||||||
|
# - name: Adjust paths in test/config.ini
|
||||||
|
# shell: pwsh
|
||||||
|
# run: |
|
||||||
|
# (Get-Content "test/config.ini") -replace '(?<=^SRCDIR=).*', '${{ github.workspace }}' -replace '(?<=^BUILDDIR=).*', '${{ github.workspace }}' -replace '(?<=^RPCAUTH=).*', '${{ github.workspace }}/share/rpcauth/rpcauth.py' | Set-Content "test/config.ini"
|
||||||
|
# Get-Content "test/config.ini"
|
||||||
|
#
|
||||||
|
# - name: Set previous release directory
|
||||||
|
# run: |
|
||||||
|
# echo "PREVIOUS_RELEASES_DIR=${{ runner.temp }}/previous_releases" >> "$GITHUB_ENV"
|
||||||
|
#
|
||||||
|
# - name: Get previous releases
|
||||||
|
# working-directory: test
|
||||||
|
# run: ./get_previous_releases.py --target-dir $PREVIOUS_RELEASES_DIR
|
||||||
|
#
|
||||||
|
# - name: Run functional tests
|
||||||
|
# env:
|
||||||
|
# # TODO: Fix the excluded test and re-enable it.
|
||||||
|
# # feature_unsupported_utxo_db.py fails on windows because of emojis in the test data directory
|
||||||
|
# EXCLUDE: '--exclude wallet_multiwallet.py,feature_unsupported_utxo_db.py'
|
||||||
|
# TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
|
||||||
|
# run: py -3 test/functional/test_runner.py --jobs $NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix="$RUNNER_TEMP" --combinedlogslen=99999999 --timeout-factor=$TEST_RUNNER_TIMEOUT_FACTOR $EXCLUDE $TEST_RUNNER_EXTRA
|
||||||
|
|
||||||
if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
|
freebsd-syslibs:
|
||||||
|
name: 'FreeBSD: system libs, no GUI'
|
||||||
env:
|
needs: runners
|
||||||
PYTHONUTF8: 1
|
runs-on: ${{ needs.runners.outputs.use-cirrus-runners == 'true' && 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md' || 'ubuntu-latest' }}
|
||||||
TEST_RUNNER_TIMEOUT_FACTOR: 40
|
defaults:
|
||||||
|
run:
|
||||||
strategy:
|
shell: freebsd {0}
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
job-type: [standard, fuzz]
|
|
||||||
include:
|
|
||||||
- job-type: standard
|
|
||||||
generate-options: '-DBUILD_GUI=ON -DWITH_ZMQ=ON -DBUILD_BENCH=ON -DWERROR=ON'
|
|
||||||
job-name: 'Windows native, VS 2022'
|
|
||||||
- job-type: fuzz
|
|
||||||
generate-options: '-DVCPKG_MANIFEST_NO_DEFAULT_FEATURES=ON -DVCPKG_MANIFEST_FEATURES="wallet" -DBUILD_GUI=OFF -DBUILD_FOR_FUZZING=ON -DWERROR=ON'
|
|
||||||
job-name: 'Windows native, fuzz, VS 2022'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
|
||||||
- name: Configure Developer Command Prompt for Microsoft Visual C++
|
- name: Setup Ccache directory
|
||||||
# Using microsoft/setup-msbuild is not enough.
|
shell: bash
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
|
||||||
with:
|
|
||||||
arch: x64
|
|
||||||
|
|
||||||
- name: Get tool information
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
run: |
|
||||||
cmake -version | Tee-Object -FilePath "cmake_version"
|
export CCACHE_DIR=${{ github.workspace }}/.ccache
|
||||||
Write-Output "---"
|
echo "CCACHE_DIR=$CCACHE_DIR" >> "$GITHUB_ENV"
|
||||||
msbuild -version | Tee-Object -FilePath "msbuild_version"
|
mkdir -p "$CCACHE_DIR"
|
||||||
$env:VCToolsVersion | Tee-Object -FilePath "toolset_version"
|
|
||||||
py -3 --version
|
|
||||||
Write-Host "PowerShell version $($PSVersionTable.PSVersion.ToString())"
|
|
||||||
bash --version
|
|
||||||
|
|
||||||
- name: Using vcpkg with MSBuild
|
- name: Restore ccache
|
||||||
|
uses: cirruslabs/cache/restore@v4
|
||||||
|
with:
|
||||||
|
path: ${{ env.CCACHE_DIR }}
|
||||||
|
key: ccache-${{ github.job }}-${{ github.run_id }}
|
||||||
|
restore-keys: ccache-${{ github.job }}-
|
||||||
|
|
||||||
|
- name: Speed up VM install
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "set(VCPKG_BUILD_TYPE release)" >> "${VCPKG_INSTALLATION_ROOT}/triplets/x64-windows.cmake"
|
# Updating man-db can be slow
|
||||||
# Workaround for libevent, which requires CMake 3.1 but is incompatible with CMake >= 4.0.
|
echo "set man-db/auto-update false" | sudo debconf-communicate; sudo dpkg-reconfigure man-db
|
||||||
sed -i '1s/^/set(ENV{CMAKE_POLICY_VERSION_MINIMUM} 3.5)\n/' "${VCPKG_INSTALLATION_ROOT}/scripts/ports.cmake"
|
|
||||||
|
|
||||||
- name: vcpkg tools cache
|
- name: Start FreeBSD VM
|
||||||
uses: actions/cache@v4
|
uses: vmactions/freebsd-vm@v1
|
||||||
with:
|
with:
|
||||||
path: C:/vcpkg/downloads/tools
|
envs: 'CCACHE_DIR'
|
||||||
key: ${{ github.job }}-vcpkg-tools
|
prepare: pkg install -y cmake-core ninja git pkgconf boost-libs libevent sqlite3 capnproto libzmq4 python3 net/py-pyzmq databases/py-sqlite3 ccache
|
||||||
|
run: git config --global --add safe.directory ${{ github.workspace }}
|
||||||
|
sync: 'nfs' # nfs is auto-synced and allows ccache save at the end of the run
|
||||||
|
|
||||||
- name: Restore vcpkg binary cache
|
- name: Generate buildsystem
|
||||||
uses: actions/cache/restore@v4
|
env:
|
||||||
id: vcpkg-binary-cache
|
CMAKE_GENERATOR: 'Ninja'
|
||||||
with:
|
|
||||||
path: ~/AppData/Local/vcpkg/archives
|
|
||||||
key: ${{ github.job }}-vcpkg-binary-${{ hashFiles('cmake_version', 'msbuild_version', 'toolset_version', 'vcpkg.json') }}
|
|
||||||
|
|
||||||
- name: Generate build system
|
|
||||||
run: |
|
run: |
|
||||||
cmake -B build -Werror=dev --preset vs2022 -DCMAKE_TOOLCHAIN_FILE="${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ${{ matrix.generate-options }}
|
cd ${{ github.workspace }}
|
||||||
|
cmake -B build -DWITH_ZMQ=ON -DBUILD_BENCH=ON -DWERROR=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||||
- name: Save vcpkg binary cache
|
|
||||||
uses: actions/cache/save@v4
|
|
||||||
if: github.event_name != 'pull_request' && steps.vcpkg-binary-cache.outputs.cache-hit != 'true' && matrix.job-type == 'standard'
|
|
||||||
with:
|
|
||||||
path: ~/AppData/Local/vcpkg/archives
|
|
||||||
key: ${{ github.job }}-vcpkg-binary-${{ hashFiles('cmake_version', 'msbuild_version', 'toolset_version', 'vcpkg.json') }}
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: build
|
|
||||||
run: |
|
run: |
|
||||||
cmake --build . -j $NUMBER_OF_PROCESSORS --config Release
|
echo "CCACHE_DIR=$CCACHE_DIR"
|
||||||
|
ccache -s
|
||||||
|
ccache -z
|
||||||
|
cmake --build ${{ github.workspace }}/build -j$(nproc)
|
||||||
|
ccache -s
|
||||||
|
|
||||||
- name: Get bitcoind manifest
|
- name: Check 'bitcoind' executable
|
||||||
if: matrix.job-type == 'standard'
|
|
||||||
working-directory: build
|
|
||||||
run: |
|
run: |
|
||||||
mt.exe -nologo -inputresource:bin/Release/bitcoind.exe -out:bitcoind.manifest
|
set -e
|
||||||
cat bitcoind.manifest
|
cd ${{ github.workspace }}
|
||||||
echo
|
ls -l build/bin/bitcoind
|
||||||
mt.exe -nologo -inputresource:bin/Release/bitcoind.exe -validate_manifest
|
file build/bin/bitcoind
|
||||||
|
ldd build/bin/bitcoind
|
||||||
|
./build/bin/bitcoind -version
|
||||||
|
|
||||||
- name: Run test suite
|
- name: Run test suite
|
||||||
if: matrix.job-type == 'standard'
|
|
||||||
working-directory: build
|
|
||||||
env:
|
|
||||||
QT_PLUGIN_PATH: '${{ github.workspace }}\build\vcpkg_installed\x64-windows\Qt6\plugins'
|
|
||||||
run: |
|
run: |
|
||||||
ctest --output-on-failure --stop-on-failure -j $NUMBER_OF_PROCESSORS -C Release
|
cmake -E env ctest --test-dir ${{ github.workspace }}/build -j $(nproc) --output-on-failure
|
||||||
|
|
||||||
- name: Run functional tests
|
- name: Run functional tests
|
||||||
if: matrix.job-type == 'standard'
|
|
||||||
working-directory: build
|
|
||||||
env:
|
|
||||||
BITCOIN_BIN: '${{ github.workspace }}\build\bin\Release\bitcoin.exe'
|
|
||||||
BITCOIND: '${{ github.workspace }}\build\bin\Release\bitcoind.exe'
|
|
||||||
BITCOINCLI: '${{ github.workspace }}\build\bin\Release\bitcoin-cli.exe'
|
|
||||||
BITCOINTX: '${{ github.workspace }}\build\bin\Release\bitcoin-tx.exe'
|
|
||||||
BITCOINUTIL: '${{ github.workspace }}\build\bin\Release\bitcoin-util.exe'
|
|
||||||
BITCOINWALLET: '${{ github.workspace }}\build\bin\Release\bitcoin-wallet.exe'
|
|
||||||
TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
|
|
||||||
run: py -3 test/functional/test_runner.py --jobs $NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix="${RUNNER_TEMP}" --combinedlogslen=99999999 --timeout-factor=${TEST_RUNNER_TIMEOUT_FACTOR} ${TEST_RUNNER_EXTRA}
|
|
||||||
|
|
||||||
- name: Clone corpora
|
|
||||||
if: matrix.job-type == 'fuzz'
|
|
||||||
run: |
|
run: |
|
||||||
git clone --depth=1 https://github.com/bitcoin-core/qa-assets "${RUNNER_TEMP}/qa-assets"
|
cd ${{ github.workspace }}
|
||||||
cd "${RUNNER_TEMP}/qa-assets"
|
./build/test/functional/test_runner.py --ci --extended -j $(nproc) --combinedlogslen=99999999 --quiet --timeout-factor=8 --tmpdirprefix=/tmp --cachedir=/tmp/test_cache
|
||||||
echo "Using qa-assets repo from commit ..."
|
|
||||||
git log -1
|
|
||||||
|
|
||||||
- name: Run fuzz tests
|
- name: Save ccache
|
||||||
if: matrix.job-type == 'fuzz'
|
uses: cirruslabs/cache/save@v4
|
||||||
working-directory: build
|
# if: ${{ (github.event_name == 'push') && (github.ref_name == github.event.repository.default_branch) }}
|
||||||
env:
|
|
||||||
BITCOINFUZZ: '${{ github.workspace }}\build\bin\Release\fuzz.exe'
|
|
||||||
run: |
|
|
||||||
py -3 test/fuzz/test_runner.py --par $NUMBER_OF_PROCESSORS --loglevel DEBUG "${RUNNER_TEMP}/qa-assets/fuzz_corpora"
|
|
||||||
|
|
||||||
windows-cross:
|
|
||||||
name: 'Linux->Windows cross, no tests'
|
|
||||||
needs: runners
|
|
||||||
runs-on: ${{ needs.runners.outputs.provider == 'cirrus' && 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm' || 'ubuntu-24.04' }}
|
|
||||||
if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
|
|
||||||
|
|
||||||
env:
|
|
||||||
FILE_ENV: './ci/test/00_setup_env_win64.sh'
|
|
||||||
DANGER_CI_ON_HOST_FOLDERS: 1
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- *CHECKOUT
|
|
||||||
|
|
||||||
- name: Configure environment
|
|
||||||
uses: ./.github/actions/configure-environment
|
|
||||||
|
|
||||||
- name: Restore caches
|
|
||||||
id: restore-cache
|
|
||||||
uses: ./.github/actions/restore-caches
|
|
||||||
|
|
||||||
- name: Configure Docker
|
|
||||||
uses: ./.github/actions/configure-docker
|
|
||||||
with:
|
with:
|
||||||
cache-provider: ${{ needs.runners.outputs.provider }}
|
path: ${{ env.CCACHE_DIR }}
|
||||||
|
key: ccache-${{ github.job }}-${{ github.run_id }}
|
||||||
|
|
||||||
- name: CI script
|
# ci-matrix:
|
||||||
run: ./ci/test_run_all.sh
|
# name: ${{ matrix.name }}
|
||||||
|
# needs: runners
|
||||||
- name: Save caches
|
# runs-on: ${{ needs.runners.outputs.provider == 'cirrus' && matrix.cirrus-runner || matrix.fallback-runner }}
|
||||||
uses: ./.github/actions/save-caches
|
# if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
|
||||||
|
# timeout-minutes: ${{ matrix.timeout-minutes }}
|
||||||
- name: Upload built executables
|
#
|
||||||
uses: actions/upload-artifact@v4
|
# env:
|
||||||
with:
|
# DANGER_CI_ON_HOST_FOLDERS: 1
|
||||||
name: x86_64-w64-mingw32-executables-${{ github.run_id }}
|
# FILE_ENV: ${{ matrix.file-env }}
|
||||||
path: |
|
#
|
||||||
${{ env.BASE_BUILD_DIR }}/bin/*.exe
|
# strategy:
|
||||||
${{ env.BASE_BUILD_DIR }}/src/secp256k1/bin/*.exe
|
# fail-fast: false
|
||||||
${{ env.BASE_BUILD_DIR }}/src/univalue/*.exe
|
# matrix:
|
||||||
${{ env.BASE_BUILD_DIR }}/test/config.ini
|
# include:
|
||||||
|
# - name: '32 bit ARM, unit tests, no functional tests'
|
||||||
windows-native-test:
|
# cirrus-runner: 'ubuntu-24.04-arm' # Cirrus' Arm runners are Apple (with virtual Linux aarch64), which doesn't support 32-bit mode
|
||||||
name: 'Windows, test cross-built'
|
# fallback-runner: 'ubuntu-24.04-arm'
|
||||||
runs-on: windows-2022
|
# timeout-minutes: 120
|
||||||
needs: windows-cross
|
# file-env: './ci/test/00_setup_env_arm.sh'
|
||||||
|
# provider: 'gha'
|
||||||
env:
|
#
|
||||||
PYTHONUTF8: 1
|
# - name: 'ASan + LSan + UBSan + integer, no depends, USDT'
|
||||||
TEST_RUNNER_TIMEOUT_FACTOR: 40
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md' # has to match container in ci/test/00_setup_env_native_asan.sh for tracing tools
|
||||||
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
steps:
|
# timeout-minutes: 120
|
||||||
- *CHECKOUT
|
# file-env: './ci/test/00_setup_env_native_asan.sh'
|
||||||
|
#
|
||||||
- name: Download built executables
|
# - name: 'macOS-cross, gui, no tests'
|
||||||
uses: actions/download-artifact@v4
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm'
|
||||||
with:
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
name: x86_64-w64-mingw32-executables-${{ github.run_id }}
|
# timeout-minutes: 120
|
||||||
|
# file-env: './ci/test/00_setup_env_mac_cross.sh'
|
||||||
- name: Run bitcoind.exe
|
#
|
||||||
run: ./bin/bitcoind.exe -version
|
# - name: 'No wallet, libbitcoinkernel'
|
||||||
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm'
|
||||||
- name: Find mt.exe tool
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
shell: pwsh
|
# timeout-minutes: 120
|
||||||
run: |
|
# file-env: './ci/test/00_setup_env_native_nowallet_libbitcoinkernel.sh'
|
||||||
$sdk_dir = (Get-ItemProperty 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots' -Name KitsRoot10).KitsRoot10
|
#
|
||||||
$sdk_latest = (Get-ChildItem "$sdk_dir\bin" -Directory | Where-Object { $_.Name -match '^\d+\.\d+\.\d+\.\d+$' } | Sort-Object Name -Descending | Select-Object -First 1).Name
|
# - name: 'no IPC, i686, DEBUG'
|
||||||
"MT_EXE=${sdk_dir}bin\${sdk_latest}\x64\mt.exe" >> $env:GITHUB_ENV
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md'
|
||||||
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
- name: Get bitcoind manifest
|
# timeout-minutes: 120
|
||||||
shell: pwsh
|
# file-env: './ci/test/00_setup_env_i686_no_ipc.sh'
|
||||||
run: |
|
#
|
||||||
& $env:MT_EXE -nologo -inputresource:bin\bitcoind.exe -out:bitcoind.manifest
|
# - name: 'fuzzer,address,undefined,integer, no depends'
|
||||||
Get-Content bitcoind.manifest
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg'
|
||||||
& $env:MT_EXE -nologo -inputresource:bin\bitcoind.exe -validate_manifest
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
|
# timeout-minutes: 240
|
||||||
- name: Run unit tests
|
# file-env: './ci/test/00_setup_env_native_fuzz.sh'
|
||||||
# Can't use ctest here like other jobs as we don't have a CMake build tree.
|
#
|
||||||
run: |
|
# - name: 'previous releases, depends DEBUG'
|
||||||
./bin/test_bitcoin.exe -l test_suite # Intentionally run sequentially here, to catch test case failures caused by dirty global state from prior test cases.
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md'
|
||||||
./src/secp256k1/bin/exhaustive_tests.exe
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
./src/secp256k1/bin/noverify_tests.exe
|
# timeout-minutes: 120
|
||||||
./src/secp256k1/bin/tests.exe
|
# file-env: './ci/test/00_setup_env_native_previous_releases.sh'
|
||||||
./src/univalue/object.exe
|
#
|
||||||
./src/univalue/unitester.exe
|
# - name: 'CentOS, depends, gui'
|
||||||
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg'
|
||||||
- name: Run benchmarks
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
run: ./bin/bench_bitcoin.exe -sanity-check
|
# timeout-minutes: 120
|
||||||
|
# file-env: './ci/test/00_setup_env_native_centos.sh'
|
||||||
- name: Adjust paths in test/config.ini
|
#
|
||||||
shell: pwsh
|
# - name: 'tidy'
|
||||||
run: |
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md'
|
||||||
(Get-Content "test/config.ini") -replace '(?<=^SRCDIR=).*', '${{ github.workspace }}' -replace '(?<=^BUILDDIR=).*', '${{ github.workspace }}' -replace '(?<=^RPCAUTH=).*', '${{ github.workspace }}/share/rpcauth/rpcauth.py' | Set-Content "test/config.ini"
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
Get-Content "test/config.ini"
|
# timeout-minutes: 120
|
||||||
|
# file-env: './ci/test/00_setup_env_native_tidy.sh'
|
||||||
- name: Set previous release directory
|
#
|
||||||
run: |
|
# - name: 'TSan, depends, no gui'
|
||||||
echo "PREVIOUS_RELEASES_DIR=${{ runner.temp }}/previous_releases" >> "$GITHUB_ENV"
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md'
|
||||||
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
- name: Get previous releases
|
# timeout-minutes: 120
|
||||||
working-directory: test
|
# file-env: './ci/test/00_setup_env_native_tsan.sh'
|
||||||
run: ./get_previous_releases.py --target-dir $PREVIOUS_RELEASES_DIR
|
#
|
||||||
|
# - name: 'MSan, depends'
|
||||||
- name: Run functional tests
|
# cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg'
|
||||||
env:
|
# fallback-runner: 'ubuntu-24.04'
|
||||||
# TODO: Fix the excluded test and re-enable it.
|
# timeout-minutes: 120
|
||||||
# feature_unsupported_utxo_db.py fails on windows because of emojis in the test data directory
|
# file-env: './ci/test/00_setup_env_native_msan.sh'
|
||||||
EXCLUDE: '--exclude wallet_multiwallet.py,feature_unsupported_utxo_db.py'
|
#
|
||||||
TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
|
# steps:
|
||||||
run: py -3 test/functional/test_runner.py --jobs $NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix="$RUNNER_TEMP" --combinedlogslen=99999999 --timeout-factor=$TEST_RUNNER_TIMEOUT_FACTOR $EXCLUDE $TEST_RUNNER_EXTRA
|
# - *CHECKOUT
|
||||||
|
#
|
||||||
ci-matrix:
|
# - name: Configure environment
|
||||||
name: ${{ matrix.name }}
|
# uses: ./.github/actions/configure-environment
|
||||||
needs: runners
|
#
|
||||||
runs-on: ${{ needs.runners.outputs.provider == 'cirrus' && matrix.cirrus-runner || matrix.fallback-runner }}
|
# - name: Restore caches
|
||||||
if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
|
# id: restore-cache
|
||||||
timeout-minutes: ${{ matrix.timeout-minutes }}
|
# uses: ./.github/actions/restore-caches
|
||||||
|
#
|
||||||
env:
|
# - name: Configure Docker
|
||||||
DANGER_CI_ON_HOST_FOLDERS: 1
|
# uses: ./.github/actions/configure-docker
|
||||||
FILE_ENV: ${{ matrix.file-env }}
|
# with:
|
||||||
|
# cache-provider: ${{ matrix.provider || needs.runners.outputs.provider }}
|
||||||
strategy:
|
#
|
||||||
fail-fast: false
|
# - name: Enable bpfcc script
|
||||||
matrix:
|
# if: ${{ env.CONTAINER_NAME == 'ci_native_asan' }}
|
||||||
include:
|
# # In the image build step, no external environment variables are available,
|
||||||
- name: '32 bit ARM, unit tests, no functional tests'
|
# # so any settings will need to be written to the settings env file:
|
||||||
cirrus-runner: 'ubuntu-24.04-arm' # Cirrus' Arm runners are Apple (with virtual Linux aarch64), which doesn't support 32-bit mode
|
# run: sed -i "s|\${INSTALL_BCC_TRACING_TOOLS}|true|g" ./ci/test/00_setup_env_native_asan.sh
|
||||||
fallback-runner: 'ubuntu-24.04-arm'
|
#
|
||||||
timeout-minutes: 120
|
# - name: Set mmap_rnd_bits
|
||||||
file-env: './ci/test/00_setup_env_arm.sh'
|
# if: ${{ env.CONTAINER_NAME == 'ci_native_tsan' || env.CONTAINER_NAME == 'ci_native_msan' }}
|
||||||
provider: 'gha'
|
# # Prevents crashes due to high ASLR entropy
|
||||||
|
# run: sudo sysctl -w vm.mmap_rnd_bits=28
|
||||||
- name: 'ASan + LSan + UBSan + integer, no depends, USDT'
|
#
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md' # has to match container in ci/test/00_setup_env_native_asan.sh for tracing tools
|
# - name: CI script
|
||||||
fallback-runner: 'ubuntu-24.04'
|
# run: ./ci/test_run_all.sh
|
||||||
timeout-minutes: 120
|
#
|
||||||
file-env: './ci/test/00_setup_env_native_asan.sh'
|
# - name: Save caches
|
||||||
|
# uses: ./.github/actions/save-caches
|
||||||
- name: 'macOS-cross, gui, no tests'
|
#
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm'
|
# lint:
|
||||||
fallback-runner: 'ubuntu-24.04'
|
# name: 'lint'
|
||||||
timeout-minutes: 120
|
# needs: runners
|
||||||
file-env: './ci/test/00_setup_env_mac_cross.sh'
|
# runs-on: ${{ needs.runners.outputs.use-cirrus-runners == 'true' && 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-xs' || 'ubuntu-24.04' }}
|
||||||
|
# if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
|
||||||
- name: 'No wallet, libbitcoinkernel'
|
# timeout-minutes: 20
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm'
|
# env:
|
||||||
fallback-runner: 'ubuntu-24.04'
|
# CONTAINER_NAME: "bitcoin-linter"
|
||||||
timeout-minutes: 120
|
# steps:
|
||||||
file-env: './ci/test/00_setup_env_native_nowallet_libbitcoinkernel.sh'
|
# - name: Checkout
|
||||||
|
# uses: actions/checkout@v5
|
||||||
- name: 'no IPC, i686, DEBUG'
|
# with:
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md'
|
# ref: *CHECKOUT_REF_TMPL
|
||||||
fallback-runner: 'ubuntu-24.04'
|
# fetch-depth: 0
|
||||||
timeout-minutes: 120
|
#
|
||||||
file-env: './ci/test/00_setup_env_i686_no_ipc.sh'
|
# - name: Configure Docker
|
||||||
|
# uses: ./.github/actions/configure-docker
|
||||||
- name: 'fuzzer,address,undefined,integer, no depends'
|
# with:
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg'
|
# cache-provider: ${{ needs.runners.outputs.provider }}
|
||||||
fallback-runner: 'ubuntu-24.04'
|
#
|
||||||
timeout-minutes: 240
|
# - name: CI script
|
||||||
file-env: './ci/test/00_setup_env_native_fuzz.sh'
|
# run: |
|
||||||
|
# set -o xtrace
|
||||||
- name: 'previous releases, depends DEBUG'
|
# docker buildx build -t "$CONTAINER_NAME" $DOCKER_BUILD_CACHE_ARG --file "./ci/lint_imagefile" .
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md'
|
# CIRRUS_PR_FLAG=""
|
||||||
fallback-runner: 'ubuntu-24.04'
|
# if [ "${{ github.event_name }}" = "pull_request" ]; then
|
||||||
timeout-minutes: 120
|
# CIRRUS_PR_FLAG="-e CIRRUS_PR=1"
|
||||||
file-env: './ci/test/00_setup_env_native_previous_releases.sh'
|
# fi
|
||||||
|
# docker run --rm $CIRRUS_PR_FLAG -v "$(pwd)":/bitcoin "$CONTAINER_NAME"
|
||||||
- name: 'CentOS, depends, gui'
|
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg'
|
|
||||||
fallback-runner: 'ubuntu-24.04'
|
|
||||||
timeout-minutes: 120
|
|
||||||
file-env: './ci/test/00_setup_env_native_centos.sh'
|
|
||||||
|
|
||||||
- name: 'tidy'
|
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md'
|
|
||||||
fallback-runner: 'ubuntu-24.04'
|
|
||||||
timeout-minutes: 120
|
|
||||||
file-env: './ci/test/00_setup_env_native_tidy.sh'
|
|
||||||
|
|
||||||
- name: 'TSan, depends, no gui'
|
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md'
|
|
||||||
fallback-runner: 'ubuntu-24.04'
|
|
||||||
timeout-minutes: 120
|
|
||||||
file-env: './ci/test/00_setup_env_native_tsan.sh'
|
|
||||||
|
|
||||||
- name: 'MSan, depends'
|
|
||||||
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg'
|
|
||||||
fallback-runner: 'ubuntu-24.04'
|
|
||||||
timeout-minutes: 120
|
|
||||||
file-env: './ci/test/00_setup_env_native_msan.sh'
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- *CHECKOUT
|
|
||||||
|
|
||||||
- name: Configure environment
|
|
||||||
uses: ./.github/actions/configure-environment
|
|
||||||
|
|
||||||
- name: Restore caches
|
|
||||||
id: restore-cache
|
|
||||||
uses: ./.github/actions/restore-caches
|
|
||||||
|
|
||||||
- name: Configure Docker
|
|
||||||
uses: ./.github/actions/configure-docker
|
|
||||||
with:
|
|
||||||
cache-provider: ${{ matrix.provider || needs.runners.outputs.provider }}
|
|
||||||
|
|
||||||
- name: Enable bpfcc script
|
|
||||||
if: ${{ env.CONTAINER_NAME == 'ci_native_asan' }}
|
|
||||||
# In the image build step, no external environment variables are available,
|
|
||||||
# so any settings will need to be written to the settings env file:
|
|
||||||
run: sed -i "s|\${INSTALL_BCC_TRACING_TOOLS}|true|g" ./ci/test/00_setup_env_native_asan.sh
|
|
||||||
|
|
||||||
- name: Set mmap_rnd_bits
|
|
||||||
if: ${{ env.CONTAINER_NAME == 'ci_native_tsan' || env.CONTAINER_NAME == 'ci_native_msan' }}
|
|
||||||
# Prevents crashes due to high ASLR entropy
|
|
||||||
run: sudo sysctl -w vm.mmap_rnd_bits=28
|
|
||||||
|
|
||||||
- name: CI script
|
|
||||||
run: ./ci/test_run_all.sh
|
|
||||||
|
|
||||||
- name: Save caches
|
|
||||||
uses: ./.github/actions/save-caches
|
|
||||||
|
|
||||||
lint:
|
|
||||||
name: 'lint'
|
|
||||||
needs: runners
|
|
||||||
runs-on: ${{ needs.runners.outputs.use-cirrus-runners == 'true' && 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-xs' || 'ubuntu-24.04' }}
|
|
||||||
if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
|
|
||||||
timeout-minutes: 20
|
|
||||||
env:
|
|
||||||
CONTAINER_NAME: "bitcoin-linter"
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v5
|
|
||||||
with:
|
|
||||||
ref: *CHECKOUT_REF_TMPL
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Configure Docker
|
|
||||||
uses: ./.github/actions/configure-docker
|
|
||||||
with:
|
|
||||||
cache-provider: ${{ needs.runners.outputs.provider }}
|
|
||||||
|
|
||||||
- name: CI script
|
|
||||||
run: |
|
|
||||||
set -o xtrace
|
|
||||||
docker buildx build -t "$CONTAINER_NAME" $DOCKER_BUILD_CACHE_ARG --file "./ci/lint_imagefile" .
|
|
||||||
CIRRUS_PR_FLAG=""
|
|
||||||
if [ "${{ github.event_name }}" = "pull_request" ]; then
|
|
||||||
CIRRUS_PR_FLAG="-e CIRRUS_PR=1"
|
|
||||||
fi
|
|
||||||
docker run --rm $CIRRUS_PR_FLAG -v "$(pwd)":/bitcoin "$CONTAINER_NAME"
|
|
||||||
|
|
Loading…
Reference in New Issue