Skip to content
Closed
Show file tree
Hide file tree
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
78 changes: 0 additions & 78 deletions .github/workflows/ubuntu-2004.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/ubuntu-2404.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build contracts
on:
push:
branches:
- main
- "release/*"
pull_request:
types: [assigned, opened, synchronize, reopened, labeled]
env:
BUILDER_IMAGE: "guilledk/py-leap:cdt-4.0.0"
jobs:
ubuntu-2404-build:
name: Ubuntu 24.04 | Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
set -e
export DOCKER="docker run --rm -v $(pwd):/root/target ${BUILDER_IMAGE}"
docker pull ${BUILDER_IMAGE}
echo ${DOCKER}
echo =====
mkdir build
${DOCKER} bash -c "cd build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=yes .."
echo =====
${DOCKER} bash -c "cd build && make -j $(nproc) VERBOSE=1"
echo =====
${DOCKER} bash -c 'cd build/tests && ctest -j $(nproc)'
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.5)

set(EOSIO_VERSION_MIN "3.1")
set(EOSIO_VERSION_SOFT_MAX "3.1")
set(EOSIO_VERSION_SOFT_MAX "4.1")
# set(EOSIO_VERSION_HARD_MAX "")

find_package(leap)
Expand Down
22 changes: 11 additions & 11 deletions tests/eosio.system_tester.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ using mvo = fc::mutable_variant_object;

namespace eosio_system {

auto dump_trace = [](transaction_trace_ptr trace_ptr) -> transaction_trace_ptr {
std::cout << std::endl << "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" << std::endl;
for(auto trace : trace_ptr->action_traces) {
std::cout << "action_name trace: " << trace.act.name.to_string() << std::endl;
//TODO: split by new line character, loop and indent output
std::cout << trace.console << std::endl << std::endl;
}
std::cout << std::endl << ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" << std::endl << std::endl;
return trace_ptr;
};
// auto dump_trace = [](transaction_trace_ptr trace_ptr) -> transaction_trace_ptr {
// std::cout << std::endl << "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" << std::endl;
// for(auto trace : trace_ptr->action_traces) {
// std::cout << "action_name trace: " << trace.act.name.to_string() << std::endl;
// //TODO: split by new line character, loop and indent output
// std::cout << trace.console << std::endl << std::endl;
// }
// std::cout << std::endl << ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" << std::endl << std::endl;
// return trace_ptr;
// };

class eosio_system_tester : public TESTER {
public:
Expand Down Expand Up @@ -200,7 +200,7 @@ class eosio_system_tester : public TESTER {
trx.actions.emplace_back(on_block_act);
trx.sign( get_private_key( config::system_account_name, "active" ), control->get_chain_id() );
auto t = push_transaction(trx);
dump_trace(t);
// dump_trace(t);
return t;
}
// TELOS END
Expand Down
Loading