mirror of
https://github.com/daywalker90/cln-nip47.git
synced 2026-08-13 12:33:43 +02:00
ci: always save bitcoind and cln cache
This commit is contained in:
parent
675e625dcd
commit
2d4302e23e
1 changed files with 20 additions and 4 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
|
@ -58,18 +58,18 @@ jobs:
|
|||
echo "OS version: $OS_VERSION"
|
||||
echo "os_version=$OS_VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache CLN
|
||||
- name: Restore CLN cache
|
||||
id: cache-cln
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
/usr/local/bin/lightning*
|
||||
/usr/local/libexec/c-lightning
|
||||
key: cache-cln-${{ inputs.cln-version }}-${{ steps.exact_versions.outputs.os_version }}
|
||||
|
||||
- name: Cache bitcoind
|
||||
- name: Restore bitcoind cache
|
||||
id: cache-bitcoind
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: /usr/local/bin/bitcoin*
|
||||
key: cache-bitcoind-${{ matrix.bitcoind-version }}-${{ steps.exact_versions.outputs.os_version }}
|
||||
|
|
@ -90,6 +90,13 @@ jobs:
|
|||
sudo mv bitcoin-${BITCOIND_VERSION}/bin/* /usr/local/bin
|
||||
rm -rf bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz bitcoin-${BITCOIND_VERSION}
|
||||
|
||||
- name: Save bitcoind cache
|
||||
id: save-cache-bitcoind
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: /usr/local/bin/bitcoin*
|
||||
key: ${{ steps.cache-bitcoind.outputs.cache-primary-key }}
|
||||
|
||||
- name: Download Core Lightning ${{ inputs.cln-version }} & install binaries
|
||||
if: ${{ contains(matrix.os, 'ubuntu') && steps.cache-cln.outputs.cache-hit != 'true' }}
|
||||
run: |
|
||||
|
|
@ -100,6 +107,15 @@ jobs:
|
|||
sudo tar -xvf ${url##*/} -C /usr/local --strip-components=2
|
||||
echo "CLN_VERSION=$(lightningd --version)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Restore CLN cache
|
||||
id: save-cache-cln
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
/usr/local/bin/lightning*
|
||||
/usr/local/libexec/c-lightning
|
||||
key: ${{ steps.cache-cln.outputs.cache-primary-key }}
|
||||
|
||||
- name: Set up Rust
|
||||
if: ${{ inputs.tagged-release == false}}
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue