-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6daeec3
commit 9d5a726
Showing
10 changed files
with
86 additions
and
1,146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,80 +14,55 @@ concurrency: | |
|
||
jobs: | ||
run-local-testnet: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-22.04 | ||
- macos-12 | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
# Enable portable to prevent issues with caching `blst` for the wrong CPU type | ||
FEATURES: portable,jemalloc | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get latest version of stable Rust | ||
run: rustup update stable | ||
- name: Install geth (ubuntu) | ||
if: matrix.os == 'ubuntu-22.04' | ||
run: | | ||
sudo add-apt-repository -y ppa:ethereum/ethereum | ||
sudo apt-get update | ||
sudo apt-get install ethereum | ||
- name: Install geth (mac) | ||
if: matrix.os == 'macos-12' | ||
run: | | ||
brew tap ethereum/ethereum | ||
brew install ethereum | ||
- name: Install GNU sed & GNU grep | ||
if: matrix.os == 'macos-12' | ||
run: | | ||
brew install gnu-sed grep | ||
echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH | ||
echo "$(brew --prefix)/opt/grep/libexec/gnubin" >> $GITHUB_PATH | ||
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo | ||
- uses: actions/cache@v4 | ||
id: cache-cargo | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- uses: jpribyl/[email protected] | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
|
||
- name: Install lighthouse | ||
run: make && make install-lcli | ||
- name: Install dependencies | ||
run: | | ||
sudo add-apt-repository ppa:rmescandon/yq | ||
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list | ||
sudo apt update | ||
sudo apt install -y kurtosis-cli yq | ||
kurtosis analytics disable | ||
- name: Start local testnet | ||
run: ./start_local_testnet.sh genesis.json && sleep 60 | ||
run: ./start_local_testnet.sh -c && sleep 60 | ||
working-directory: scripts/local_testnet | ||
|
||
- name: Print logs | ||
run: ./dump_logs.sh | ||
run: kurtosis enclave dump local-testnet logs-local-testnet | ||
working-directory: scripts/local_testnet | ||
|
||
- name: Stop local testnet | ||
run: ./stop_local_testnet.sh | ||
working-directory: scripts/local_testnet | ||
|
||
- name: Clean-up testnet | ||
run: ./clean.sh | ||
run: kurtosis enclave rm -f local-testnet | ||
working-directory: scripts/local_testnet | ||
|
||
- name: Start local testnet with blinded block production | ||
run: ./start_local_testnet.sh -p genesis.json && sleep 60 | ||
run: ./start_local_testnet.sh -c -p -b false && sleep 60 | ||
working-directory: scripts/local_testnet | ||
|
||
- name: Print logs for blinded block testnet | ||
run: ./dump_logs.sh | ||
run: kurtosis enclave dump local-testnet logs-blinded-block-testnet | ||
working-directory: scripts/local_testnet | ||
|
||
- name: Stop local testnet with blinded block production | ||
run: ./stop_local_testnet.sh | ||
run: kurtosis enclave rm -f local-testnet | ||
working-directory: scripts/local_testnet | ||
|
||
- name: Upload logs artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: local-testnet-logs | ||
path: | | ||
scripts/local_testnet/logs-local-testnet | ||
scripts/local_testnet/logs-blinded-block-testnet | ||
retention-days: 3 | ||
|
||
# This job succeeds ONLY IF all others succeed. It is used by the merge queue to determine whether | ||
# a PR is safe to merge. New jobs should be added here. | ||
local-testnet-success: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.