From b4eb69827483cd3efcb9252ad7899e188785a5f4 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Tue, 13 Aug 2024 09:45:19 +0200 Subject: [PATCH] Try fixing caching once more .. since it stopped working now? --- .github/workflows/rust.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 848126403..9af24d491 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -57,23 +57,23 @@ jobs: id: cache-bitcoind uses: actions/cache@v4 with: - path: bin/bitcoind - key: bitcoind-${{ runner.os }} + path: /home/runner/bin/bitcoind-${{ runner.os }}-${{ runner.arch }} + key: bitcoind-${{ runner.os }}-${{ runner.arch }} - name: Enable caching for electrs id: cache-electrs uses: actions/cache@v4 with: - path: bin/electrs - key: electrs-${{ runner.os }} + path: /home/runner/bin/electrs-${{ runner.os }}-${{ runner.arch }} + key: electrs-${{ runner.os }}-${{ runner.arch }} - 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 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" + mkdir -p /home/runner/bin + mv "$BITCOIND_EXE" /home/runner/bin/bitcoind-${{ runner.os }}-${{ runner.arch }} + mv "$ELECTRS_EXE" /home/runner/bin/electrs-${{ runner.os }}-${{ runner.arch }} + echo "BITCOIND_EXE=/home/runner/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV" + echo "ELECTRS_EXE=/home/runner/bin/electrs-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV" - name: Build on Rust ${{ matrix.toolchain }} run: cargo build --verbose --color always - name: Build with UniFFI support on Rust ${{ matrix.toolchain }}