Skip to content

Commit

Permalink
fix build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mriccobene committed Feb 5, 2024
1 parent 7597114 commit cc3cca2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/rpc-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <NAME>"
run: cmake --build . --config Release --target rpcdaemon -j 2

Expand All @@ -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
Expand All @@ -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=$?
Expand Down

0 comments on commit cc3cca2

Please sign in to comment.