diff --git a/.github/workflows/rpc-integration-tests.yml b/.github/workflows/rpc-integration-tests.yml index a9b9117db9..52ac97262d 100644 --- a/.github/workflows/rpc-integration-tests.yml +++ b/.github/workflows/rpc-integration-tests.yml @@ -15,6 +15,7 @@ jobs: env: ERIGON_DATA_DIR: /opt/erigon/datadir RPC_TEST_DIR: /opt/rpc-tests + SILKWORM_BUILD_DIR: ${{runner.workspace}}/silkworm/build steps: - name: Check out repository @@ -24,20 +25,20 @@ jobs: fetch-depth: "0" - name: Clean Build Directory - run: rm -rf ${{runner.workspace}}/build/* + run: rm -rf $SILKWORM_BUILD_DIR - name: Create Build Environment # Some projects don't allow in-source building, so create a separate build directory # We'll use this as our working directory for all subsequent commands - run: cmake -E make_directory ${{runner.workspace}}/build + run: cmake -E make_directory $SILKWORM_BUILD_DIR - name: Configure CMake - working-directory: ${{runner.workspace}}/build + working-directory: $SILKWORM_BUILD_DIR run: | cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release - name: Build SilkRpc - working-directory: ${{runner.workspace}}/build + working-directory: $SILKWORM_BUILD_DIR # Execute the build. You can specify a specific target with "--target " run: cmake --build . --config Release --target rpcdaemon -j 2 @@ -52,9 +53,9 @@ jobs: # fi - name: Run SilkRpc - working-directory: ${{runner.workspace}}/build/cmd + working-directory: $SILKWORM_BUILD_DIR/cmd run: | - rpcdaemon --datadir $ERIGON_DATA_DIR --api admin,debug,eth,parity,erigon,trace,web3,txpool,ots,net --log.verbosity 1 --erigon_compatibility --jwt ./jwt.hex --skip_protocol_check & + ./rpcdaemon --datadir $ERIGON_DATA_DIR --api admin,debug,eth,parity,erigon,trace,web3,txpool,ots,net --log.verbosity 1 --erigon_compatibility --jwt ./jwt.hex --skip_protocol_check & RPC_DAEMON_PID=$! - name: Run integration tests @@ -63,7 +64,7 @@ jobs: cd $RPC_TEST_DIR/integration # Run Erigon, send ctrl-c and check logs - python3 ./run_tests.py --continue --blockchain mainnet --jwt ${{runner.workspace}}/build/cmd/jwt.hex --display-only-fail --port 8545 -x admin_,eth_mining,eth_getWork,eth_coinbase,eth_createAccessList/test_16.json + python3 ./run_tests.py --continue --blockchain mainnet --jwt $SILKWORM_BUILD_DIR/cmd/jwt.hex --display-only-fail --port 8545 -x admin_,eth_mining,eth_getWork,eth_coinbase,eth_createAccessList/test_16.json # Capture monitoring script exit status monitoring_exit_status=$?