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

Add assigner executable #14

Merged
merged 3 commits into from
Apr 19, 2024
Merged

Add assigner executable #14

merged 3 commits into from
Apr 19, 2024

Conversation

akokoshn
Copy link
Collaborator

No description provided.

@akokoshn akokoshn marked this pull request as draft March 26, 2024 16:30
@akokoshn akokoshn force-pushed the add_assigner branch 7 times, most recently from 94df9cf to 2ef70bd Compare April 1, 2024 08:52
@akokoshn akokoshn self-assigned this Apr 1, 2024
bin/assigner/src/main.cpp Outdated Show resolved Hide resolved
bin/extractor/src/main.cpp Outdated Show resolved Hide resolved
@akokoshn akokoshn requested a review from makxenov April 1, 2024 15:41
@akokoshn akokoshn force-pushed the add_assigner branch 2 times, most recently from 8ddd03d to f698a5d Compare April 3, 2024 07:08
@akokoshn akokoshn marked this pull request as ready for review April 3, 2024 07:09
@akokoshn akokoshn requested a review from aleasims April 3, 2024 07:09
libs/CMakeLists.txt Outdated Show resolved Hide resolved
bin/assigner/CMakeLists.txt Outdated Show resolved Hide resolved
bin/assigner/src/main.cpp Outdated Show resolved Hide resolved
nix/assigner.nix Outdated Show resolved Hide resolved
.gitmodules Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
bin/assigner/CMakeLists.txt Outdated Show resolved Hide resolved
bin/assigner/CMakeLists.txt Outdated Show resolved Hide resolved
bin/assigner/CMakeLists.txt Outdated Show resolved Hide resolved
flake.nix Outdated Show resolved Hide resolved
nix/assigner.nix Outdated Show resolved Hide resolved
nix/assigner.nix Outdated Show resolved Hide resolved
@aleasims
Copy link
Contributor

aleasims commented Apr 3, 2024

As far as I see, build of assigner is not done at CI. We should add a step for that.

@akokoshn akokoshn force-pushed the add_assigner branch 6 times, most recently from 573b5c4 to 3345f32 Compare April 4, 2024 11:43
.github/workflows/run-tests-linux.yml Outdated Show resolved Hide resolved
.gitmodules Outdated Show resolved Hide resolved
@akokoshn akokoshn force-pushed the add_assigner branch 3 times, most recently from be9fdeb to b24b9c5 Compare April 4, 2024 14:59
.gitmodules Outdated Show resolved Hide resolved
@akokoshn akokoshn force-pushed the add_assigner branch 5 times, most recently from f31604d to d36d500 Compare April 11, 2024 13:56
@akokoshn akokoshn force-pushed the add_assigner branch 2 times, most recently from 85e350a to 2b3c27c Compare April 17, 2024 06:48
@akokoshn akokoshn requested a review from aleasims April 17, 2024 06:49
Copy link
Contributor

@aleasims aleasims left a comment

Choose a reason for hiding this comment

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

Also we can add apps to outputs of flake.nix here to define assigner as Nix app. This will allow to build and run assigner like this:

nix run .#assigner

Apps definition in flake.nix outputs looks something like this:

packages = ...
checks = ...
apps = forAllSystems ({ pkgs }: {
    assigner = {
        type = "app";
        program = "${self.packages.${pkgs.system}.default}/bin/assigner";
    };
});

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved

add_executable(${TARGET_NAME} ${SOURCES})

target_compile_options(${TARGET_NAME} PRIVATE -std=c++23)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there is a special property defining C++ standard (CXX_STANDARD or CMAKE_CXX_STANDARD)

Also, do we really use such new standard?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we need it for intx from evm-assigner

bin/assigner/CMakeLists.txt Outdated Show resolved Hide resolved
bin/assigner/CMakeLists.txt Outdated Show resolved Hide resolved
bin/assigner/CMakeLists.txt Outdated Show resolved Hide resolved
bin/assigner/include/utils.hpp Show resolved Hide resolved
bin/assigner/src/main.cpp Show resolved Hide resolved
bin/assigner/src/main.cpp Show resolved Hide resolved
bin/assigner/CMakeLists.txt Show resolved Hide resolved
Copy link
Contributor

@aleasims aleasims left a comment

Choose a reason for hiding this comment

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

You also need to add evmc to all buildInputs in flake.nix just like sszpp is done.

@akokoshn akokoshn requested a review from aleasims April 18, 2024 13:32
@akokoshn akokoshn force-pushed the add_assigner branch 2 times, most recently from 7213cef to d3b40d5 Compare April 18, 2024 15:21
@akokoshn akokoshn merged commit 1fc657e into master Apr 19, 2024
2 checks passed
@akokoshn akokoshn deleted the add_assigner branch April 19, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants