File tree 1 file changed +18
-5
lines changed 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,27 @@ jobs:
53
53
- name : Set RUSTFLAGS to deny warnings
54
54
if : " matrix.toolchain == 'stable'"
55
55
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
56
68
- 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') "
58
70
run : |
59
71
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
+ mkdir -p "$HOME"/bin
73
+ mv "$BITCOIND_EXE" "$HOME"/bin/bitcoind
74
+ mv "$ELECTRS_EXE" "$HOME"/bin/electrs
75
+ echo "BITCOIND_EXE=$HOME/bin/bitcoind" >> "$GITHUB_ENV"
76
+ echo "ELECTRS_EXE=$HOME/bin/electrs" >> "$GITHUB_ENV"
64
77
- name : Build on Rust ${{ matrix.toolchain }}
65
78
run : cargo build --verbose --color always
66
79
- name : Build with UniFFI support on Rust ${{ matrix.toolchain }}
You can’t perform that action at this time.
0 commit comments