2222 runs-on : ${{ matrix.platform }}
2323 steps :
2424 - name : Checkout source code
25- uses : actions/checkout@v3
25+ uses : actions/checkout@v4
2626 - name : Install Rust ${{ matrix.toolchain }} toolchain
2727 run : |
2828 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
@@ -32,14 +32,38 @@ jobs:
3232 run : |
3333 rustup target add thumbv7m-none-eabi
3434 sudo apt-get -y install gcc-arm-none-eabi
35- - name : shellcheck the CI script
35+ - name : shellcheck the CI and `contrib` scripts
3636 if : " matrix.platform == 'ubuntu-latest'"
3737 run : |
3838 sudo apt-get -y install shellcheck
39- shellcheck ci/ci-tests.sh
39+ shellcheck ci/*.sh -aP ci
40+ shellcheck contrib/*.sh -aP contrib
4041 - name : Set RUSTFLAGS to deny warnings
4142 if : " matrix.toolchain == '1.63.0'"
4243 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"
4367 - name : Run CI script
4468 shell : bash # Default on Winblows is powershell
4569 run : CI_MINIMIZE_DISK_USAGE=1 ./ci/ci-tests.sh
5074 runs-on : ubuntu-latest
5175 steps :
5276 - name : Checkout source code
53- uses : actions/checkout@v3
77+ uses : actions/checkout@v4
5478 with :
5579 fetch-depth : 0
5680 - name : Install Rust stable toolchain
@@ -72,14 +96,14 @@ jobs:
7296 TOOLCHAIN : stable
7397 steps :
7498 - name : Checkout source code
75- uses : actions/checkout@v3
99+ uses : actions/checkout@v4
76100 - name : Install Rust ${{ env.TOOLCHAIN }} toolchain
77101 run : |
78102 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
79103 rustup override set ${{ env.TOOLCHAIN }}
80104 - name : Cache routing graph snapshot
81105 id : cache-graph
82- uses : actions/cache@v3
106+ uses : actions/cache@v4
83107 with :
84108 path : lightning/net_graph-2023-12-10.bin
85109 key : ldk-net_graph-v0.0.118-2023-12-10.bin
96120 EXPECTED_ROUTING_GRAPH_SNAPSHOT_SHASUM : e94b38ef4b3ce683893bf6a3ee28d60cb37c73b059403ff77b7e7458157968c2
97121 - name : Cache scorer snapshot
98122 id : cache-scorer
99- uses : actions/cache@v3
123+ uses : actions/cache@v4
100124 with :
101125 path : lightning/scorer-2023-12-10.bin
102126 key : ldk-scorer-v0.0.118-2023-12-10.bin
@@ -142,7 +166,7 @@ jobs:
142166 TOOLCHAIN : stable
143167 steps :
144168 - name : Checkout source code
145- uses : actions/checkout@v3
169+ uses : actions/checkout@v4
146170 with :
147171 fetch-depth : 0
148172 - name : Install Rust ${{ env.TOOLCHAIN }} toolchain
@@ -165,7 +189,7 @@ jobs:
165189 TOOLCHAIN : stable
166190 steps :
167191 - name : Checkout source code
168- uses : actions/checkout@v3
192+ uses : actions/checkout@v4
169193 with :
170194 fetch-depth : 0
171195 - name : Install Rust ${{ env.TOOLCHAIN }} toolchain
@@ -194,7 +218,7 @@ jobs:
194218 TOOLCHAIN : 1.63
195219 steps :
196220 - name : Checkout source code
197- uses : actions/checkout@v3
221+ uses : actions/checkout@v4
198222 - name : Install Rust ${{ env.TOOLCHAIN }} toolchain
199223 run : |
200224 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
@@ -217,7 +241,7 @@ jobs:
217241 TOOLCHAIN : stable
218242 steps :
219243 - name : Checkout source code
220- uses : actions/checkout@v3
244+ uses : actions/checkout@v4
221245 - name : Install Rust ${{ env.TOOLCHAIN }} toolchain
222246 run : |
223247 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
@@ -235,7 +259,7 @@ jobs:
235259 TOOLCHAIN : 1.63.0
236260 steps :
237261 - name : Checkout source code
238- uses : actions/checkout@v3
262+ uses : actions/checkout@v4
239263 - name : Install Rust ${{ env.TOOLCHAIN }} toolchain
240264 run : |
241265 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
@@ -250,7 +274,7 @@ jobs:
250274 runs-on : ubuntu-latest
251275 if : github.ref_name != 'main' # `main` has no diff with itself
252276 steps :
253- - uses : actions/checkout@v3
277+ - uses : actions/checkout@v4
254278 with :
255279 fetch-depth : 0
256280 - name : Relative diff
0 commit comments