]> Untitled Git - bdk/commitdiff
update github ci removing electrs download and fixing cache
authorRiccardo Casatta <riccardo@casatta.it>
Mon, 28 Jun 2021 14:12:25 +0000 (16:12 +0200)
committerRiccardo Casatta <riccardo@casatta.it>
Tue, 29 Jun 2021 09:35:00 +0000 (11:35 +0200)
.github/workflows/cont_integration.yml

index 9e5be26f785dd498cea0386b78b18c01a9189a28..04847357fb40acd49da9d20b3857d4837da0bf10 100644 (file)
@@ -84,10 +84,6 @@ jobs:
           - name: electrum
           - name: rpc
           - 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:
       - name: Checkout
         uses: actions/checkout@v2
@@ -96,6 +92,8 @@ jobs:
         with:
           path: |
             ~/.cargo/registry
+            ~/.cargo/bitcoin
+            ~/.cargo/electrs
             ~/.cargo/git
             target
           key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
@@ -104,18 +102,8 @@ jobs:
         with:
           toolchain: stable
           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
-        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:
     name: Check WASM