File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,26 @@ jobs:
5353 - name : Set RUSTFLAGS to deny warnings
5454 if : " matrix.toolchain == 'stable'"
5555 run : echo "RUSTFLAGS=-D warnings" >> "$GITHUB_ENV"
56+ - name : Enable caching for bitcoind
57+ id : cache-bitcoind
58+ uses : actions/cache@v4
59+ with :
60+ path : $HOME/bin/bitcoind
61+ key : bitcoind
62+ - name : Enable caching for electrs
63+ id : cache-electrs
64+ uses : actions/cache@v4
65+ with :
66+ path : $HOME/bin/electrs
67+ key : electrs
5668 - name : Download bitcoind/electrs and set environment variables
57- if : " matrix.platform != 'windows-latest'"
69+ if : " matrix.platform != 'windows-latest' && (steps.cache-bitcoind.outputs.cache-hit != 'true' || steps.cache-electrs.outputs.cache-hit != 'true') "
5870 run : |
5971 source ./scripts/download_bitcoind_electrs.sh
60- cp "$BITCOIND_EXE" "$HOME"/bitcoind
61- cp "$ELECTRS_EXE" "$HOME"/electrs
62- echo "BITCOIND_EXE=$HOME/bitcoind" >> "$GITHUB_ENV"
63- echo "ELECTRS_EXE=$HOME/electrs" >> "$GITHUB_ENV"
72+ cp "$BITCOIND_EXE" "$HOME"/bin/ bitcoind
73+ cp "$ELECTRS_EXE" "$HOME"/bin/ electrs
74+ echo "BITCOIND_EXE=$HOME/bin/ bitcoind" >> "$GITHUB_ENV"
75+ echo "ELECTRS_EXE=$HOME/bin/ electrs" >> "$GITHUB_ENV"
6476 - name : Build on Rust ${{ matrix.toolchain }}
6577 run : cargo build --verbose --color always
6678 - name : Build with UniFFI support on Rust ${{ matrix.toolchain }}
You can’t perform that action at this time.
0 commit comments