From 2933bb2609dba598ac8143c61e4dc3c9d7899e1f Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Thu, 17 Mar 2022 15:41:42 +0200 Subject: [PATCH] ci: temporarily disable examples ref: https://github.com/gakonst/ethers-rs/issues/1036 --- .github/workflows/ci.yml | 103 ++++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6c303c3..58ab6a3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -175,58 +175,59 @@ jobs: cd examples/ethers-wasm wasm-pack test --headless --chrome - examples: - name: Examples - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v2 - - name: Install ganache-cli - uses: actions/setup-node@v1 - with: - node-version: 10 - - name: Install ganache - run: npm install -g ganache-cli - - name: Install Solc - run: | - mkdir -p "$HOME/bin" - wget -q https://github.com/ethereum/solidity/releases/download/v0.8.10/solc-static-linux -O $HOME/bin/solc - chmod u+x "$HOME/bin/solc" - export PATH=$HOME/bin:$PATH - solc --version + # TODO: Re-enable once we figure out why examples are running forever. + # examples: + # name: Examples + # runs-on: ubuntu-latest + # steps: + # - name: Checkout sources + # uses: actions/checkout@v2 + # - name: Install ganache-cli + # uses: actions/setup-node@v1 + # with: + # node-version: 10 + # - name: Install ganache + # run: npm install -g ganache-cli + # - name: Install Solc + # run: | + # mkdir -p "$HOME/bin" + # wget -q https://github.com/ethereum/solidity/releases/download/v0.8.10/solc-static-linux -O $HOME/bin/solc + # chmod u+x "$HOME/bin/solc" + # export PATH=$HOME/bin:$PATH + # solc --version - - name: Install geth - run: | - mkdir -p "$HOME/bin" - wget -q https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.9.23-8c2f2715.tar.gz - tar -xvf geth-linux-amd64-1.9.23-8c2f2715.tar.gz - mv geth-linux-amd64-1.9.23-8c2f2715/geth $HOME/bin/geth - chmod u+x "$HOME/bin/geth" - export PATH=$HOME/bin:$PATH - geth version - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - components: rustfmt, clippy - - uses: Swatinem/rust-cache@v1 - with: - cache-on-failure: true - - name: Build all examples - run: | - export PATH=$HOME/bin:$PATH - for file in examples/*.rs; do - name="$(echo "$file" | cut -f 1 -d '.')" - echo "building $name" - cargo build -p ethers --example "$(basename "$name")" - done - - name: Run all examples - run: | - export PATH=$HOME/bin:$PATH - chmod +x ./scripts/examples.sh - ./scripts/examples.sh + # - name: Install geth + # run: | + # mkdir -p "$HOME/bin" + # wget -q https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.9.23-8c2f2715.tar.gz + # tar -xvf geth-linux-amd64-1.9.23-8c2f2715.tar.gz + # mv geth-linux-amd64-1.9.23-8c2f2715/geth $HOME/bin/geth + # chmod u+x "$HOME/bin/geth" + # export PATH=$HOME/bin:$PATH + # geth version + # - name: Install stable toolchain + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: stable + # override: true + # components: rustfmt, clippy + # - uses: Swatinem/rust-cache@v1 + # with: + # cache-on-failure: true + # - name: Build all examples + # run: | + # export PATH=$HOME/bin:$PATH + # for file in examples/*.rs; do + # name="$(echo "$file" | cut -f 1 -d '.')" + # echo "building $name" + # cargo build -p ethers --example "$(basename "$name")" + # done + # - name: Run all examples + # run: | + # export PATH=$HOME/bin:$PATH + # chmod +x ./scripts/examples.sh + # ./scripts/examples.sh windows-build: runs-on: windows-latest