Skip to content

Commit dffb790

Browse files
authored
Merge pull request #343 from tnull/2024-08-try-fix-caching-2
Try fixing caching once more
2 parents dcdbaf7 + 41ae206 commit dffb790

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,23 @@ jobs:
5757
id: cache-bitcoind
5858
uses: actions/cache@v4
5959
with:
60-
path: bin/bitcoind
61-
key: bitcoind-${{ runner.os }}
60+
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
61+
key: bitcoind-${{ runner.os }}-${{ runner.arch }}
6262
- name: Enable caching for electrs
6363
id: cache-electrs
6464
uses: actions/cache@v4
6565
with:
66-
path: bin/electrs
67-
key: electrs-${{ runner.os }}
66+
path: bin/electrs-${{ runner.os }}-${{ runner.arch }}
67+
key: electrs-${{ runner.os }}-${{ runner.arch }}
6868
- name: Download bitcoind/electrs and set environment variables
6969
if: "matrix.platform != 'windows-latest' && (steps.cache-bitcoind.outputs.cache-hit != 'true' || steps.cache-electrs.outputs.cache-hit != 'true')"
7070
run: |
7171
source ./scripts/download_bitcoind_electrs.sh
72-
mkdir -p bin
73-
mv "$BITCOIND_EXE" bin/bitcoind
74-
mv "$ELECTRS_EXE" bin/electrs
75-
echo "BITCOIND_EXE=bin/bitcoind" >> "$GITHUB_ENV"
76-
echo "ELECTRS_EXE=bin/electrs" >> "$GITHUB_ENV"
72+
mkdir bin
73+
mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
74+
mv "$ELECTRS_EXE" bin/electrs-${{ runner.os }}-${{ runner.arch }}
75+
echo "BITCOIND_EXE=$( pwd )/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
76+
echo "ELECTRS_EXE=$( pwd )/bin/electrs-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
7777
- name: Build on Rust ${{ matrix.toolchain }}
7878
run: cargo build --verbose --color always
7979
- name: Build with UniFFI support on Rust ${{ matrix.toolchain }}

0 commit comments

Comments
 (0)