3737 shell : netbsd {0}
3838
3939 steps :
40- - name : Checkout Bitcoin Core repo
40+ - &CHECKOUT_BITCOIN_CORE
41+ name : Checkout Bitcoin Core repo
4142 uses : actions/checkout@v5
4243 with :
4344 repository : bitcoin/bitcoin
@@ -55,24 +56,33 @@ jobs:
5556 sync : ' rsync'
5657 copyback : false
5758
58- - name : Checkout helper actions
59+ - &CHECKOUT_HELPER_ACTIONS
60+ name : Checkout helper actions
5961 uses : actions/checkout@v5
6062 with :
6163 sparse-checkout : .github/actions
6264 path : ci/nightly
6365
6466 - name : Generate buildsystem
6567 # TODO: Reenable IPC.
68+ # See: https://github.com/bitcoin-core/libmultiprocess/pull/196.
6669 run : |
70+ set -e
6771 cd ${{ github.workspace }}
68- cmake -B build -DCMAKE_C_COMPILER="/usr/pkg/gcc14/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/pkg/gcc14/bin/g++" -DENABLE_IPC=OFF -DWITH_ZMQ=ON -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON
72+ cmake -B build \
73+ -DCMAKE_C_COMPILER="/usr/pkg/gcc14/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/pkg/gcc14/bin/g++" \
74+ -DENABLE_IPC=OFF -DWITH_ZMQ=ON \
75+ -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON
76+ df -h
6977
70- - name : Build
78+ - &BUILD
79+ name : Build
7180 uses : ./ci/nightly/.github/actions/build-with-ccache
7281 with :
7382 vm : netbsd
7483
75- - name : Check 'bitcoind' executable
84+ - &CHECK_BITCOIND
85+ name : Check 'bitcoind' executable
7686 run : |
7787 set -e
7888 cd ${{ github.workspace }}
@@ -81,12 +91,14 @@ jobs:
8191 ldd build/bin/bitcoind
8292 ./build/bin/bitcoind -version
8393
84- - name : Run test suite
94+ - &RUN_TEST_SUITE
95+ name : Run test suite
8596 uses : ./ci/nightly/.github/actions/run-test-suite
8697 with :
8798 vm : netbsd
8899
89- - name : Run functional tests
100+ - &RUN_FUNCTIONAL_TESTS
101+ name : Run functional tests
90102 if : ${{ ! inputs.skip_functional_tests }}
91103 run : |
92104 cd ${{ github.workspace }}
@@ -100,10 +112,7 @@ jobs:
100112 shell : netbsd {0}
101113
102114 steps :
103- - name : Checkout Bitcoin Core repo
104- uses : actions/checkout@v5
105- with :
106- repository : bitcoin/bitcoin
115+ - *CHECKOUT_BITCOIN_CORE
107116
108117 - name : Start NetBSD VM
109118 uses : vmactions/netbsd-vm@v1
@@ -118,11 +127,7 @@ jobs:
118127 sync : ' rsync'
119128 copyback : false
120129
121- - name : Checkout helper actions
122- uses : actions/checkout@v5
123- with :
124- sparse-checkout : .github/actions
125- path : ci/nightly
130+ - *CHECKOUT_HELPER_ACTIONS
126131
127132 - name : Build depends
128133 uses : ./ci/nightly/.github/actions/build-depends
@@ -131,35 +136,15 @@ jobs:
131136 options : " MULTIPROCESS=1 build_CC=/usr/pkg/gcc14/bin/gcc build_CXX=/usr/pkg/gcc14/bin/g++ CC=/usr/pkg/gcc14/bin/gcc CXX=/usr/pkg/gcc14/bin/g++"
132137
133138 - name : Generate buildsystem
134- run : >
135- cd ${{ github.workspace }} &&
136- cmake -B build \
137- --toolchain depends/$(./depends/config.sub $(./depends/config.guess))/toolchain.cmake \
138- -DBUILD_BENCH=ON \
139- -DBUILD_FUZZ_BINARY=ON \
140- -DWERROR=ON
141-
142- - name : Build
143- uses : ./ci/nightly/.github/actions/build-with-ccache
144- with :
145- vm : netbsd
146-
147- - name : Check 'bitcoind' executable
148139 run : |
149140 set -e
150141 cd ${{ github.workspace }}
151- ls -l build/bin/bitcoind
152- file build/bin/bitcoind
153- ldd build/bin/bitcoind
154- ./build/bin/bitcoind -version
155-
156- - name : Run test suite
157- uses : ./ci/nightly/.github/actions/run-test-suite
158- with :
159- vm : netbsd
142+ cmake -B build \
143+ --toolchain depends/$(./depends/config.sub $(./depends/config.guess))/toolchain.cmake \
144+ -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON
145+ df -h
160146
161- - name : Run functional tests
162- if : ${{ ! inputs.skip_functional_tests }}
163- run : |
164- cd ${{ github.workspace }}
165- python3.13 build/test/functional/test_runner.py --ci --extended -j ${{ env.CI_NCPU }} --combinedlogslen=99999999 --quiet --tmpdirprefix . --timeout-factor=8 ${{ env.FUNCTIONAL_TESTS_EXCLUDE }}
147+ - *BUILD
148+ - *CHECK_BITCOIND
149+ - *RUN_TEST_SUITE
150+ - *RUN_FUNCTIONAL_TESTS
0 commit comments