Skip to content

Commit

Permalink
Merge pull request #342 from tnull/2024-08-try-fix-caching
Browse files Browse the repository at this point in the history
Try fix caching
  • Loading branch information
tnull committed Aug 12, 2024
2 parents 2bbb764 + 6b35703 commit dcdbaf7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,23 @@ jobs:
id: cache-bitcoind
uses: actions/cache@v4
with:
path: $HOME/bin/bitcoind
path: bin/bitcoind
key: bitcoind-${{ runner.os }}
- name: Enable caching for electrs
id: cache-electrs
uses: actions/cache@v4
with:
path: $HOME/bin/electrs
path: bin/electrs
key: electrs-${{ runner.os }}
- name: Download bitcoind/electrs and set environment variables
if: "matrix.platform != 'windows-latest' && (steps.cache-bitcoind.outputs.cache-hit != 'true' || steps.cache-electrs.outputs.cache-hit != 'true')"
run: |
source ./scripts/download_bitcoind_electrs.sh
mkdir -p "$HOME"/bin
mv "$BITCOIND_EXE" "$HOME"/bin/bitcoind
mv "$ELECTRS_EXE" "$HOME"/bin/electrs
echo "BITCOIND_EXE=$HOME/bin/bitcoind" >> "$GITHUB_ENV"
echo "ELECTRS_EXE=$HOME/bin/electrs" >> "$GITHUB_ENV"
mkdir -p bin
mv "$BITCOIND_EXE" bin/bitcoind
mv "$ELECTRS_EXE" bin/electrs
echo "BITCOIND_EXE=bin/bitcoind" >> "$GITHUB_ENV"
echo "ELECTRS_EXE=bin/electrs" >> "$GITHUB_ENV"
- name: Build on Rust ${{ matrix.toolchain }}
run: cargo build --verbose --color always
- name: Build with UniFFI support on Rust ${{ matrix.toolchain }}
Expand Down

0 comments on commit dcdbaf7

Please sign in to comment.