@@ -47,60 +47,59 @@ jobs:
47
47
-DSYSTEM_UNIVALUE=ON
48
48
steps :
49
49
- name : Checkout
50
- uses : actions/checkout@v3
50
+ uses : actions/checkout@v4
51
51
- name : Install dependencies
52
- uses : awalsh128/cache-apt-pkgs-action@latest
52
+ uses : awalsh128/cache-apt-pkgs-action@v1
53
53
with :
54
- packages : |
54
+ packages : >-
55
55
${{matrix.deps}}
56
56
ccache
57
+ cmake
57
58
libcurl4-openssl-dev
59
+ libssl-dev
58
60
libzip-dev
59
61
ninja-build
62
+ pkgconf
60
63
zipcmp
61
64
zipmerge
62
65
ziptool
63
66
version : ${{matrix.tag}}
64
67
- name : Install Boost dependencies
65
- run : |
66
- sudo apt-get install -y --no-install-recommends \
67
- libboost-dev \
68
- libboost-date-time-dev \
69
- libboost-exception-dev \
70
- libboost-filesystem-dev \
71
- libboost-iostreams-dev \
72
- libboost-serialization-dev \
73
- libboost-test-dev \
74
- libboost-thread-dev
68
+ run : sudo apt-get install -y --no-install-recommends
69
+ libboost-dev
70
+ libboost-date-time-dev
71
+ libboost-exception-dev
72
+ libboost-filesystem-dev
73
+ libboost-iostreams-dev
74
+ libboost-serialization-dev
75
+ libboost-test-dev
76
+ libboost-thread-dev
75
77
- name : Configure
76
- run : |
77
- cmake -B ${{github.workspace}}/build -G Ninja \
78
- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
79
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
80
- ${{matrix.options}} \
81
- -DENABLE_TESTS=ON
78
+ run : cmake
79
+ -B ${{github.workspace}}/build -G Ninja
80
+ -DCMAKE_C_COMPILER_LAUNCHER=ccache
81
+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
82
+ ${{matrix.options}}
83
+ -DENABLE_TESTS=ON
82
84
- name : Restore cache
83
- uses : actions/cache/restore@v3
85
+ uses : actions/cache/restore@v4
84
86
if : always()
85
87
with :
86
88
path : ${{env.CCACHE_DIR}}
87
89
key : ccache-linux-${{matrix.tag}}-${{github.run_id}}
88
- restore-keys : |
89
- ccache-linux-${{matrix.tag}}-
90
+ restore-keys : ccache-linux-${{matrix.tag}}-
90
91
- name : Build
91
- run : |
92
- cmake --build ${{github.workspace}}/build -v -j $(nproc)
92
+ run : cmake --build ${{github.workspace}}/build -v -j $(nproc)
93
93
- name : Save cache
94
- uses : actions/cache/save@v3
94
+ uses : actions/cache/save@v4
95
95
if : always()
96
96
with :
97
97
path : ${{env.CCACHE_DIR}}
98
98
key : ccache-linux-${{matrix.tag}}-${{github.run_id}}
99
99
- name : Run tests
100
- run : |
101
- ctest --test-dir ${{github.workspace}}/build -j $(nproc)
100
+ run : ctest --test-dir ${{github.workspace}}/build -j $(nproc)
102
101
- name : Upload test logs
103
- uses : actions/upload-artifact@v3
102
+ uses : actions/upload-artifact@v4
104
103
if : always()
105
104
with :
106
105
name : testlog-linux-${{matrix.tag}}
@@ -131,7 +130,7 @@ jobs:
131
130
qt@5
132
131
options : >-
133
132
-DENABLE_GUI=ON
134
- -DQt5_DIR=/usr/local/opt/ qt@5/lib/cmake/Qt5
133
+ -DQt5_DIR=$(brew --prefix qt@5) /lib/cmake/Qt5
135
134
-DENABLE_QRENCODE=ON
136
135
-DENABLE_UPNP=ON
137
136
- tag : system-libs
@@ -141,52 +140,54 @@ jobs:
141
140
vim
142
141
options : >-
143
142
-DSYSTEM_BDB=ON
144
- -DBerkeleyDB_INCLUDE_DIR=/usr/local/opt/ berkeley-db@5/include
145
- -DBerkeleyDB_CXX_LIBRARY=/usr/local/opt/ berkeley-db@5/lib/libdb_cxx.dylib
143
+ -DBerkeleyDB_INCLUDE_DIR=$(brew --prefix berkeley-db@5) /include
144
+ -DBerkeleyDB_CXX_LIBRARY=$(brew --prefix berkeley-db@5) /lib/libdb_cxx.dylib
146
145
-DSYSTEM_SECP256K1=ON
147
146
-DSYSTEM_XXD=ON
148
147
steps :
149
148
- name : Checkout
150
- uses : actions/checkout@v3
149
+ uses : actions/checkout@v4
151
150
- name : Install dependencies
151
+ run : brew install --overwrite
152
+ ${{matrix.deps}}
153
+ boost
154
+ ccache
155
+ libzip
156
+ ninja
157
+ openssl@3
158
+ perl
159
+ pkg-config
160
+ - name : Prepare source
152
161
run : |
153
- brew install boost ccache ninja ${{matrix.deps}}
154
- - name : Configure
155
- run : |
156
- PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig:${PKG_CONFIG_PATH}"
157
- export PKG_CONFIG_PATH
158
-
159
162
pushd src
160
163
../contrib/nomacro.pl
161
164
popd
162
-
163
- cmake -B ${{github.workspace}}/build -G Ninja \
164
- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
165
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
166
- ${{matrix.options}} \
167
- -DENABLE_TESTS=ON
165
+ - name : Configure
166
+ run : cmake
167
+ -B ${{github.workspace}}/build -G Ninja
168
+ -DCMAKE_C_COMPILER_LAUNCHER=ccache
169
+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
170
+ ${{matrix.options}}
171
+ -DENABLE_TESTS=ON
168
172
- name : Restore cache
169
- uses : actions/cache/restore@v3
173
+ uses : actions/cache/restore@v4
170
174
if : always()
171
175
with :
172
176
path : ${{env.CCACHE_DIR}}
173
177
key : ccache-macos-${{matrix.tag}}-${{github.run_id}}
174
- restore-keys : |
175
- ccache-macos-${{matrix.tag}}-
178
+ restore-keys : ccache-macos-${{matrix.tag}}-
176
179
- name : Build
177
- run : |
178
- cmake --build ${{github.workspace}}/build -v -j $(sysctl -n hw.logicalcpu)
180
+ run : cmake --build ${{github.workspace}}/build -v -j $(sysctl -n hw.logicalcpu)
179
181
- name : Save cache
180
- uses : actions/cache/save@v3
182
+ uses : actions/cache/save@v4
181
183
if : always()
182
184
with :
183
185
path : ${{env.CCACHE_DIR}}
184
186
key : ccache-macos-${{matrix.tag}}-${{github.run_id}}
185
187
- name : Run tests
186
- run : |
187
- ctest --test-dir ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
188
+ run : ctest --test-dir ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
188
189
- name : Upload test logs
189
- uses : actions/upload-artifact@v3
190
+ uses : actions/upload-artifact@v4
190
191
if : always()
191
192
with :
192
193
name : testlog-macos-${{matrix.tag}}
@@ -224,7 +225,7 @@ jobs:
224
225
-DENABLE_UPNP=ON
225
226
steps :
226
227
- name : Checkout
227
- uses : actions/checkout@v3
228
+ uses : actions/checkout@v4
228
229
- name : Setup MSYS2
229
230
uses : msys2/setup-msys2@v2
230
231
with :
@@ -243,34 +244,31 @@ jobs:
243
244
openssl:p
244
245
toolchain:p
245
246
- name : Configure
246
- run : |
247
- cmake -B ./build -G Ninja \
248
- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
249
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
250
- ${{matrix.options}} \
251
- -DBUILD_SHARED_LIBS=OFF -DENABLE_TESTS=ON
247
+ run : cmake
248
+ -B ./build -G Ninja
249
+ -DCMAKE_C_COMPILER_LAUNCHER=ccache
250
+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
251
+ ${{matrix.options}}
252
+ -DBUILD_SHARED_LIBS=OFF -DENABLE_TESTS=ON
252
253
- name : Restore cache
253
- uses : actions/cache/restore@v3
254
+ uses : actions/cache/restore@v4
254
255
if : always()
255
256
with :
256
257
path : ${{env.CCACHE_DIR}}
257
258
key : ccache-msys2-${{matrix.tag}}-${{github.run_id}}
258
- restore-keys : |
259
- ccache-msys2-${{matrix.tag}}-
259
+ restore-keys : ccache-msys2-${{matrix.tag}}-
260
260
- name : Build
261
- run : |
262
- cmake --build ./build -v -j $NUMBER_OF_PROCESSORS
261
+ run : cmake --build ./build -v -j $NUMBER_OF_PROCESSORS
263
262
- name : Save cache
264
- uses : actions/cache/save@v3
263
+ uses : actions/cache/save@v4
265
264
if : always()
266
265
with :
267
266
path : ${{env.CCACHE_DIR}}
268
267
key : ccache-msys2-${{matrix.tag}}-${{github.run_id}}
269
268
- name : Run tests
270
- run : |
271
- ctest --test-dir ./build -j $NUMBER_OF_PROCESSORS
269
+ run : ctest --test-dir ./build -j $NUMBER_OF_PROCESSORS
272
270
- name : Upload test logs
273
- uses : actions/upload-artifact@v3
271
+ uses : actions/upload-artifact@v4
274
272
if : always()
275
273
with :
276
274
name : testlog-msys-${{matrix.tag}}
0 commit comments