update github ci removing electrs download and fixing cache

This commit is contained in:
Riccardo Casatta 2021-06-28 16:12:25 +02:00
parent a6be470fe4
commit f52fda4b4b
No known key found for this signature in database
GPG Key ID: FD986A969E450397

View File

@ -84,10 +84,6 @@ jobs:
- name: electrum - name: electrum
- name: rpc - name: rpc
- name: esplora - name: esplora
env:
ELECTRS_RELEASE_URL: https://github.com/RCasatta/electrsd/releases/download/release_0.3.0
ELECTRS_VER: electrs_ubuntu-20.04_v0.8.10.zip
ELECTRS_ESPLORA_VER: electrs_esplora_ubuntu-20.04_a33e97e1a1fc63fa9c20a116bb92579bbf43b254.zip
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -96,6 +92,8 @@ jobs:
with: with:
path: | path: |
~/.cargo/registry ~/.cargo/registry
~/.cargo/bitcoin
~/.cargo/electrs
~/.cargo/git ~/.cargo/git
target target
key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
@ -104,18 +102,8 @@ jobs:
with: with:
toolchain: stable toolchain: stable
override: true override: true
- name: Download electrs
run: wget ${{ env.ELECTRS_RELEASE_URL }}/${{ env.ELECTRS_VER }} && unzip ${{ env.ELECTRS_VER }} && chmod +x ./electrs
if: ${{ matrix.blockchain.name != 'esplora' }}
- name: Download electrs esplora
run: wget ${{ env.ELECTRS_RELEASE_URL }}/${{ env.ELECTRS_ESPLORA_VER }} && unzip ${{ env.ELECTRS_ESPLORA_VER }} && chmod +x ./electrs
if: ${{ matrix.blockchain.name == 'esplora' }}
- name: Set ELECTRS_EXE env
run: echo "ELECTRS_EXE=${{ github.workspace }}/electrs" >> $GITHUB_ENV
- name: Show electrs options
run: ${{ env.ELECTRS_EXE }} --help
- name: Test - name: Test
run: $HOME/.cargo/bin/cargo test --features test-${{ matrix.blockchain.name }},test-blockchains --no-default-features ${{ matrix.blockchain.name }}::bdk_blockchain_tests run: cargo test --features test-${{ matrix.blockchain.name }} ${{ matrix.blockchain.name }}::bdk_blockchain_tests
check-wasm: check-wasm:
name: Check WASM name: Check WASM