From 827f5d39f8fbf67f434dc761c69f7bf0fa468a3a Mon Sep 17 00:00:00 2001 From: Martin Ivanov Date: Mon, 23 Sep 2024 21:02:49 +0300 Subject: [PATCH 1/2] ci(gh-actions): Replace `MAINNET_RPC` hard-coded value with a CI secret --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a952de828..a844b75f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ 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 }}' jobs: Linter: runs-on: self-hosted From 06d7dfda6ce8f9eb8fad01899fbb409b5b288931 Mon Sep 17 00:00:00 2001 From: Petar Kirov Date: Wed, 25 Sep 2024 22:20:42 +0300 Subject: [PATCH 2/2] ci(gh-actions): Set more specific labels on self-hosted runners --- .github/workflows/ci.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a844b75f3..31ae0637f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ env: MAINNET_RPC: '${{ secrets.MAINNET_RPC }}' jobs: Linter: - runs-on: self-hosted + runs-on: [self-hosted, nixos, X64] steps: - uses: actions/checkout@v4 with: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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