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

Init & build scripts #1886

Merged
merged 18 commits into from
Dec 6, 2023
Merged

Init & build scripts #1886

merged 18 commits into from
Dec 6, 2023

Conversation

kamilsa
Copy link
Contributor

@kamilsa kamilsa commented Nov 30, 2023

Referenced issues

Description of the Change

Adds init.sh and build.sh scripts to simplify process of building KAGOME for newcomers

Benefits

More simple way of building KAGOME locally

Possible Drawbacks

Runs only on ubuntu

Usage Examples or Tests

Check readme difff

@kamilsa kamilsa marked this pull request as ready for review November 30, 2023 14:29
@kamilsa kamilsa enabled auto-merge (squash) December 5, 2023 11:01
scripts/init.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@zerg-su zerg-su left a comment

Choose a reason for hiding this comment

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

нужно вынести параметры количества ядер в env

scripts/build.sh Outdated

source $parent_dir/venv/bin/activate
$parent_dir/venv/bin/cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
$parent_dir/venv/bin/cmake --build build --target kagome -j 6
Copy link
Contributor

Choose a reason for hiding this comment

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

-j 6 - тут 6 нужно вынести в переменные по хорошему. Что-то типа CMAKE_CORE_COUNT и добавить ее в .env файл

Copy link
Contributor

Choose a reason for hiding this comment

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

ну и если используется несколько вот таких флагов (-DCMAKE_BUILD_TYPE=Release) - тут тоже можно унести в переменную

@kamilsa kamilsa merged commit 492ea87 into master Dec 6, 2023
11 of 13 checks passed
@kamilsa kamilsa deleted the feature/init-script branch December 6, 2023 09:55
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