Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(gh-actions): Update MAINNET_RPC and adjust requirements for self-hosted runners per job #382

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ env:
INFURA_API_KEY: '${{ secrets.INFURA_API_KEY }}'
USER_PRIVATE_KEY: '${{ secrets.USER_PRIVATE_KEY }}'
ETHERSCAN_API_KEY: '${{ secrets.ETHERSCAN_API_KEY }}'
MAINNET_RPC: https://rpc.mevblocker.io
MAINNET_RPC: '${{ secrets.MAINNET_RPC }}'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have configured the GH actions secrets of the repo to point this variable to our local Erigon mainnet node.

jobs:
Linter:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -30,7 +30,7 @@ jobs:
run: nix develop -c yarn format:check

Build_All:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -44,7 +44,7 @@ jobs:
run: nix develop -c yarn check:build

# EOS_Relayer_Test:
# runs-on: self-hosted
# runs-on: [self-hosted, nixos, X64]
# steps:
# - uses: actions/checkout@v4
# with:
Expand All @@ -58,7 +58,7 @@ jobs:
# run: nix develop -c yarn test './tests/eosLightClient/test-verifier-in-EOS-relay.ts'

Solidity_Validators_Accumulator_Test:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -72,7 +72,7 @@ jobs:
run: nix develop -c make test-validator-accumulator

# Nim_Light_Client_Compiled_with_Emsctipten_Tests:
# runs-on: self-hosted
# runs-on: [self-hosted, nixos, X64]
# steps:
# - uses: actions/checkout@v4
# with:
Expand All @@ -86,7 +86,7 @@ jobs:
# run: nix develop -c yarn test-emcc './tests/test-nim-to-wasm.ts' 'test-nim-light-client.ts'

Nim_Light_Client_Clang_Test:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -100,7 +100,7 @@ jobs:
run: nix develop -c yarn test './tests/test-nim-to-wasm.ts' 'test-nim-light-client.ts'

Nim_Groth16_Verifier_Tests:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -115,7 +115,7 @@ jobs:

# Disable temporary till we find way to have docker in local setup
# Run_Light_Client_In_Cosmos_Test:
# runs-on: self-hosted
# runs-on: [self-hosted, nixos, X64]
# steps:
# - uses: actions/checkout@v4
# with:
Expand All @@ -129,7 +129,7 @@ jobs:
# run: nix develop -c yarn test './tests/cosmosLightClient/test-nim-light-client-in-cosmos.ts'

# Run_Verifier_In_Cosmos_Test:
# runs-on: self-hosted
# runs-on: [self-hosted, nixos, X64]
# steps:
# - uses: actions/checkout@v4
# with:
Expand All @@ -143,7 +143,7 @@ jobs:
# run: nix develop -c yarn test './tests/cosmosLightClient/test-verifier-in-cosmos.ts'

# Run_Verifier_In_Cosmos_Relay_Tests:
# runs-on: self-hosted
# runs-on: [self-hosted, nixos, X64]
# steps:
# - uses: actions/checkout@v4
# with:
Expand All @@ -157,7 +157,7 @@ jobs:
# run: nix develop -c yarn test './tests/cosmosLightClient/test-verifier-in-cosmos-relay.ts'

Run_Circom_Tests:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -172,7 +172,7 @@ jobs:
run: nix develop -c make test-circom-circuits

Run_Plonky2_Tests:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -187,7 +187,7 @@ jobs:
run: nix develop -c make test-plonky2-circuits

Run_Verify_Given_Proof:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -201,7 +201,7 @@ jobs:
run: nix develop -c nim c -r 'tests/verify_proof/verify_given_proof_test.nim'

Run_Verify_Given_Proof_ffJS:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -215,7 +215,7 @@ jobs:
run: nix develop -c yarn test ./tests/verify_proof/verify_given_proof_test.ts

Solidity_Verifier_Tests:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -229,7 +229,7 @@ jobs:
run: nix develop -c make evm-simulation

OneShot_Syncing_Simulation:
runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -243,7 +243,7 @@ jobs:
run: nix develop -c make one-shot-syncing-simulation

Bash_Scripts_Building_Circom_Circuits:
runs-on: self-hosted
runs-on: [self-hosted, nixos, x86-64-v3]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
- OneShot_Syncing_Simulation
- Run_Plonky2_Tests

runs-on: self-hosted
runs-on: [self-hosted, nixos, X64]

steps:
- name: Check if any job failed or was cancelled
Expand Down