ci: temporarily disable examples

ref: https://github.com/gakonst/ethers-rs/issues/1036
This commit is contained in:
Georgios Konstantopoulos 2022-03-17 15:41:42 +02:00
parent 3244364060
commit 2933bb2609
1 changed files with 52 additions and 51 deletions

View File

@ -175,58 +175,59 @@ jobs:
cd examples/ethers-wasm cd examples/ethers-wasm
wasm-pack test --headless --chrome wasm-pack test --headless --chrome
examples: # TODO: Re-enable once we figure out why examples are running forever.
name: Examples # examples:
runs-on: ubuntu-latest # name: Examples
steps: # runs-on: ubuntu-latest
- name: Checkout sources # steps:
uses: actions/checkout@v2 # - name: Checkout sources
- name: Install ganache-cli # uses: actions/checkout@v2
uses: actions/setup-node@v1 # - name: Install ganache-cli
with: # uses: actions/setup-node@v1
node-version: 10 # with:
- name: Install ganache # node-version: 10
run: npm install -g ganache-cli # - name: Install ganache
- name: Install Solc # run: npm install -g ganache-cli
run: | # - name: Install Solc
mkdir -p "$HOME/bin" # run: |
wget -q https://github.com/ethereum/solidity/releases/download/v0.8.10/solc-static-linux -O $HOME/bin/solc # mkdir -p "$HOME/bin"
chmod u+x "$HOME/bin/solc" # wget -q https://github.com/ethereum/solidity/releases/download/v0.8.10/solc-static-linux -O $HOME/bin/solc
export PATH=$HOME/bin:$PATH # chmod u+x "$HOME/bin/solc"
solc --version # export PATH=$HOME/bin:$PATH
# solc --version
- name: Install geth # - name: Install geth
run: | # run: |
mkdir -p "$HOME/bin" # mkdir -p "$HOME/bin"
wget -q https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.9.23-8c2f2715.tar.gz # 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 # tar -xvf geth-linux-amd64-1.9.23-8c2f2715.tar.gz
mv geth-linux-amd64-1.9.23-8c2f2715/geth $HOME/bin/geth # mv geth-linux-amd64-1.9.23-8c2f2715/geth $HOME/bin/geth
chmod u+x "$HOME/bin/geth" # chmod u+x "$HOME/bin/geth"
export PATH=$HOME/bin:$PATH # export PATH=$HOME/bin:$PATH
geth version # geth version
- name: Install stable toolchain # - name: Install stable toolchain
uses: actions-rs/toolchain@v1 # uses: actions-rs/toolchain@v1
with: # with:
profile: minimal # profile: minimal
toolchain: stable # toolchain: stable
override: true # override: true
components: rustfmt, clippy # components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1 # - uses: Swatinem/rust-cache@v1
with: # with:
cache-on-failure: true # cache-on-failure: true
- name: Build all examples # - name: Build all examples
run: | # run: |
export PATH=$HOME/bin:$PATH # export PATH=$HOME/bin:$PATH
for file in examples/*.rs; do # for file in examples/*.rs; do
name="$(echo "$file" | cut -f 1 -d '.')" # name="$(echo "$file" | cut -f 1 -d '.')"
echo "building $name" # echo "building $name"
cargo build -p ethers --example "$(basename "$name")" # cargo build -p ethers --example "$(basename "$name")"
done # done
- name: Run all examples # - name: Run all examples
run: | # run: |
export PATH=$HOME/bin:$PATH # export PATH=$HOME/bin:$PATH
chmod +x ./scripts/examples.sh # chmod +x ./scripts/examples.sh
./scripts/examples.sh # ./scripts/examples.sh
windows-build: windows-build:
runs-on: windows-latest runs-on: windows-latest