Skip to content

Commit 6d18e6f

Browse files
committed
f
1 parent 3b9e528 commit 6d18e6f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,23 @@ jobs:
4545
id: cache-bitcoind
4646
uses: actions/cache@v4
4747
with:
48-
path: bin/bitcoind
48+
path: ${{ env.HOME }}/bin/bitcoind-${{ runner.os }}
4949
key: bitcoind-${{ runner.os }}
5050
- name: Enable caching for electrs
5151
id: cache-electrs
5252
uses: actions/cache@v4
5353
with:
54-
path: bin/electrs
54+
path: ${{ env.HOME }}/bin/electrs-${{ runner.os }}
5555
key: electrs-${{ runner.os }}
5656
- name: Download bitcoind/electrs and set environment variables
5757
if: "matrix.platform != 'windows-latest' && (steps.cache-bitcoind.outputs.cache-hit != 'true' || steps.cache-electrs.outputs.cache-hit != 'true')"
5858
run: |
5959
source ./contrib/download_bitcoind_electrs.sh
60-
mkdir -p bin
61-
mv "$BITCOIND_EXE" bin/bitcoind
62-
mv "$ELECTRS_EXE" bin/electrs
63-
echo "BITCOIND_EXE=bin/bitcoind" >> "$GITHUB_ENV"
64-
echo "ELECTRS_EXE=bin/electrs" >> "$GITHUB_ENV"
60+
mkdir -p "$HOME"/bin
61+
mv "$BITCOIND_EXE" "$HOME"/bin/bitcoind-${{ runner.os }}
62+
mv "$ELECTRS_EXE" "$HOME"/bin/electrs-${{ runner.os }}
63+
echo "BITCOIND_EXE=$HOME/bin/bitcoind-${{ runner.os }}" >> "$GITHUB_ENV"
64+
echo "ELECTRS_EXE=$HOME/bin/electrs-${{ runner.os }}" >> "$GITHUB_ENV"
6565
- name: Run CI script
6666
shell: bash # Default on Winblows is powershell
6767
run: CI_MINIMIZE_DISK_USAGE=1 ./ci/ci-tests.sh

0 commit comments

Comments
 (0)