From 00ef4df8bffcc44a50a02222929883fc4b9e00a1 Mon Sep 17 00:00:00 2001 From: Suphanat Chunhapanya Date: Mon, 14 Oct 2024 23:24:00 +0700 Subject: [PATCH] Create ethshadow.yml --- .github/workflows/ethshadow.yml | 59 +++++++++++++++++++++++++++++++++ ci/config.yaml | 12 +++++++ 2 files changed, 71 insertions(+) create mode 100644 .github/workflows/ethshadow.yml create mode 100644 ci/config.yaml diff --git a/.github/workflows/ethshadow.yml b/.github/workflows/ethshadow.yml new file mode 100644 index 0000000..198a901 --- /dev/null +++ b/.github/workflows/ethshadow.yml @@ -0,0 +1,59 @@ +name: Ethshadow + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '0 0 * * *' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Shadow's dependencies + run : | + # required dependencies + sudo apt-get install -y \ + cmake \ + findutils \ + libclang-dev \ + libc-dbg \ + libglib2.0-0 \ + libglib2.0-dev \ + make \ + netbase \ + python3 \ + python3-networkx \ + xz-utils \ + util-linux \ + gcc \ + g++ + - name: Install Shadow + run: | + git clone https://github.com/shadow/shadow.git + cd shadow + ./setup build --clean + ./setup install + - name: Install Lighthouse's dependencies + run : | + sudo apt update + sudo apt install -y git gcc g++ make cmake pkg-config llvm-dev libclang-dev clang + - name: Install Lighthouse + run: | + git clone https://github.com/sigp/lighthouse.git + cd lighthouse + git checkout v5.3.0 + make + make install-lcli + lighthouse -V + - name: Install Geth + run: | + git clone https://github.com/ethereum/go-ethereum.git + cd go-ethereum + git checkout v1.14.11 + make geth + sudo cp build/bin/geth /usr/local/bin/geth + geth -v diff --git a/ci/config.yaml b/ci/config.yaml new file mode 100644 index 0000000..5814e9b --- /dev/null +++ b/ci/config.yaml @@ -0,0 +1,12 @@ +general: + # How much time should we simulate? + stop_time: 10 min + # Display a progress indicator? + progress: true + +ethereum: + # Distribute this many validators evenly across all nodes + validators: 30 + # Create this many nodes with Geth, Lighthouse and a Validator client. + # Additionally, a host with one boot node for CL and EL each is added. + nodes: 10