Skip to content

Commit 0cfb829

Browse files
committed
Fix caching third attempt
.. we previously only set the environment variables when we downloaded the binaries. Here, we set them in a separate step to have them being usable when we're hitting the cache
1 parent dffb790 commit 0cfb829

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ jobs:
6565
with:
6666
path: bin/electrs-${{ runner.os }}-${{ runner.arch }}
6767
key: electrs-${{ runner.os }}-${{ runner.arch }}
68-
- name: Download bitcoind/electrs and set environment variables
68+
- name: Download bitcoind/electrs
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
7272
mkdir bin
7373
mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
7474
mv "$ELECTRS_EXE" bin/electrs-${{ runner.os }}-${{ runner.arch }}
75+
- name: Set bitcoind/electrs environment variables
76+
run: |
7577
echo "BITCOIND_EXE=$( pwd )/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
7678
echo "ELECTRS_EXE=$( pwd )/bin/electrs-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
7779
- name: Build on Rust ${{ matrix.toolchain }}

0 commit comments

Comments
 (0)