22
22
runs-on : ${{ matrix.platform }}
23
23
steps :
24
24
- name : Checkout source code
25
- uses : actions/checkout@v3
25
+ uses : actions/checkout@v4
26
26
- name : Install Rust ${{ matrix.toolchain }} toolchain
27
27
run : |
28
28
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
@@ -32,14 +32,38 @@ jobs:
32
32
run : |
33
33
rustup target add thumbv7m-none-eabi
34
34
sudo apt-get -y install gcc-arm-none-eabi
35
- - name : shellcheck the CI script
35
+ - name : shellcheck the CI and `contrib` scripts
36
36
if : " matrix.platform == 'ubuntu-latest'"
37
37
run : |
38
38
sudo apt-get -y install shellcheck
39
- shellcheck ci/ci-tests.sh
39
+ shellcheck ci/*.sh -aP ci
40
+ shellcheck contrib/*.sh -aP contrib
40
41
- name : Set RUSTFLAGS to deny warnings
41
42
if : " matrix.toolchain == '1.63.0'"
42
43
run : echo "RUSTFLAGS=-D warnings" >> "$GITHUB_ENV"
44
+ - name : Enable caching for bitcoind
45
+ id : cache-bitcoind
46
+ uses : actions/cache@v4
47
+ with :
48
+ path : bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
49
+ key : bitcoind-${{ runner.os }}-${{ runner.arch }}
50
+ - name : Enable caching for electrs
51
+ id : cache-electrs
52
+ uses : actions/cache@v4
53
+ with :
54
+ path : bin/electrs-${{ runner.os }}-${{ runner.arch }}
55
+ key : electrs-${{ runner.os }}-${{ runner.arch }}
56
+ - name : Download bitcoind/electrs
57
+ if : " matrix.platform != 'windows-latest' && (steps.cache-bitcoind.outputs.cache-hit != 'true' || steps.cache-electrs.outputs.cache-hit != 'true')"
58
+ run : |
59
+ source ./contrib/download_bitcoind_electrs.sh
60
+ mkdir bin
61
+ mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
62
+ mv "$ELECTRS_EXE" bin/electrs-${{ runner.os }}-${{ runner.arch }}
63
+ - name : Set bitcoind/electrs environment variables
64
+ run : |
65
+ echo "BITCOIND_EXE=$( pwd )/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
66
+ echo "ELECTRS_EXE=$( pwd )/bin/electrs-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
43
67
- name : Run CI script
44
68
shell : bash # Default on Winblows is powershell
45
69
run : CI_MINIMIZE_DISK_USAGE=1 ./ci/ci-tests.sh
50
74
runs-on : ubuntu-latest
51
75
steps :
52
76
- name : Checkout source code
53
- uses : actions/checkout@v3
77
+ uses : actions/checkout@v4
54
78
with :
55
79
fetch-depth : 0
56
80
- name : Install Rust stable toolchain
@@ -72,14 +96,14 @@ jobs:
72
96
TOOLCHAIN : stable
73
97
steps :
74
98
- name : Checkout source code
75
- uses : actions/checkout@v3
99
+ uses : actions/checkout@v4
76
100
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
77
101
run : |
78
102
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
79
103
rustup override set ${{ env.TOOLCHAIN }}
80
104
- name : Cache routing graph snapshot
81
105
id : cache-graph
82
- uses : actions/cache@v3
106
+ uses : actions/cache@v4
83
107
with :
84
108
path : lightning/net_graph-2023-12-10.bin
85
109
key : ldk-net_graph-v0.0.118-2023-12-10.bin
96
120
EXPECTED_ROUTING_GRAPH_SNAPSHOT_SHASUM : e94b38ef4b3ce683893bf6a3ee28d60cb37c73b059403ff77b7e7458157968c2
97
121
- name : Cache scorer snapshot
98
122
id : cache-scorer
99
- uses : actions/cache@v3
123
+ uses : actions/cache@v4
100
124
with :
101
125
path : lightning/scorer-2023-12-10.bin
102
126
key : ldk-scorer-v0.0.118-2023-12-10.bin
@@ -142,7 +166,7 @@ jobs:
142
166
TOOLCHAIN : stable
143
167
steps :
144
168
- name : Checkout source code
145
- uses : actions/checkout@v3
169
+ uses : actions/checkout@v4
146
170
with :
147
171
fetch-depth : 0
148
172
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
@@ -165,7 +189,7 @@ jobs:
165
189
TOOLCHAIN : stable
166
190
steps :
167
191
- name : Checkout source code
168
- uses : actions/checkout@v3
192
+ uses : actions/checkout@v4
169
193
with :
170
194
fetch-depth : 0
171
195
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
@@ -194,7 +218,7 @@ jobs:
194
218
TOOLCHAIN : 1.63
195
219
steps :
196
220
- name : Checkout source code
197
- uses : actions/checkout@v3
221
+ uses : actions/checkout@v4
198
222
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
199
223
run : |
200
224
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
@@ -217,7 +241,7 @@ jobs:
217
241
TOOLCHAIN : stable
218
242
steps :
219
243
- name : Checkout source code
220
- uses : actions/checkout@v3
244
+ uses : actions/checkout@v4
221
245
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
222
246
run : |
223
247
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
@@ -235,7 +259,7 @@ jobs:
235
259
TOOLCHAIN : 1.63.0
236
260
steps :
237
261
- name : Checkout source code
238
- uses : actions/checkout@v3
262
+ uses : actions/checkout@v4
239
263
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
240
264
run : |
241
265
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
@@ -250,7 +274,7 @@ jobs:
250
274
runs-on : ubuntu-latest
251
275
if : github.ref_name != 'main' # `main` has no diff with itself
252
276
steps :
253
- - uses : actions/checkout@v3
277
+ - uses : actions/checkout@v4
254
278
with :
255
279
fetch-depth : 0
256
280
- name : Relative diff
0 commit comments