-
Notifications
You must be signed in to change notification settings - Fork 7
feat(taskfile): Add more build tasks and rename others according to latest conventions: #70
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
Merged
Merged
Changes from 110 commits
Commits
Show all changes
129 commits
Select commit
Hold shift + click to select a range
dec0712
Make ystdlib a cmake library
PacificViking 4aa941c
add missing ystdlib-config.cmake.in file
PacificViking 662e768
add coderabbit suggestions
PacificViking 93c4d50
Modify according to coderabbit suggestion
PacificViking 0a88c49
add changes according to coderabbit suggestions
PacificViking e4dc708
fix gersemi linting errors for cmakelists
PacificViking a3bc9d5
this cmake.in file is preprocessed and should not be linted
PacificViking 601c462
fix coderabbit suggestion
PacificViking 2e54cdb
public target_compile_features
PacificViking f5e2b4b
Merge remote-tracking branch 'upstream/main' into dev
PacificViking 89f53c1
cleanup unnecessary dependencies, merge new yscope-dev-utils
PacificViking 1d313c3
use correct yscope-dev-utils version
PacificViking 2f9f30b
Merge branch 'backup-main'
PacificViking a63a4f2
fix version ordering error
PacificViking 847162f
add example, require boost
PacificViking 5e55b58
rename project name and relevant variables to ystdlib (from YSTDLIB_CPP)
PacificViking 77fc7ea
not working: splitting libraries
PacificViking 521c1f9
working examples without filesets but with separate library targets
PacificViking 1c44077
Merge branch 'dev'
PacificViking c8a3c93
modify according to coderabbit suggestions
PacificViking ef48733
fix examples/cmakelists according to coderabbit
PacificViking f62ee82
use filesets
PacificViking 7a625e7
bump examples cmake version according to coderabbit
PacificViking 277dc1d
remove examples
PacificViking f25859e
remove YSTDLIB_CPP_* to ystdlib_* change
PacificViking e94d6ae
update readme for new usage and dependencies
PacificViking 36ab649
Revert "remove YSTDLIB_CPP_* to ystdlib_* change"
PacificViking cafa9be
increase consistency in naming everything ystdlib (rather than
PacificViking 134b1e0
remove unneeded cxx direction
PacificViking 487844d
further removal of unneeded cxx
PacificViking 96b2811
Apply suggestions from code review
PacificViking 07df644
further changes according to review
PacificViking 9a7400c
fix cmake linting errors
PacificViking caff1ae
update readme according to coderabbit suggestions
PacificViking 630d389
Refactor taskfiles and add build, install, and example tasks for all …
davidlion 6c55590
Fix rabbit review.
davidlion 7f2745f
Remove unnecessary config PATH_VARS and move ystdlib_INSTALL_CONFIG_D…
davidlion 93b4a70
Fix boost version with components, update settings file path to default.
davidlion 3ab6484
Update testbin path to new version.
davidlion f449cce
Resolve rabbit nits.
davidlion b1243ed
Drop deps utils hack for boost that doesn't work. Update manually for…
davidlion d14bfdb
Rabbit nit.
davidlion aea57aa
Try to make boost dependency more robust.
davidlion 729db5c
add examples
PacificViking 43ee6cc
add other targets for examples and a README
PacificViking c4e67c4
Bump dev-utils; fix lint tasks.
davidlion cd7b3aa
Fix gersemirc path.
davidlion 2dbca54
Update examples.
davidlion 22a27c8
Refactor cmake install. Add missing boost arg define.
davidlion 56470ad
Refactor taskfiles.
davidlion 8183762
Add examples to gh workflow.
davidlion 1e5b9bc
Add readme pass.
davidlion e9cbd7c
Add missing test: prefix to gh workflow.
davidlion 596beb5
Add uv to workflow and readme.
davidlion 28916c0
Fix typo in examples cmake.
davidlion a9f7054
Refactor validate tasks.
davidlion b329870
Refactor linking-tests.cpp.
davidlion 7c62982
Update and refactor taskfiles.
davidlion 1633044
Fix linking-tests.cpp.
davidlion ed60a76
Temporary change of dev-utils for CI testing.
davidlion d351128
Change interface inheritance to pulbic.
davidlion ebb9984
Disable release unit tests in workflow.
davidlion 95cb0a0
Fix examles task in gh workflow.
davidlion 5b944b0
Fix copy-paste error messages in examples.
davidlion 962c1e0
allow separate target installations through components (relies on
PacificViking 7198859
Merge branch 'install_separate'
PacificViking edecfb2
Fix readme link for github syntax.
davidlion 30ba595
install task tweak.
davidlion 0395b33
Revert all taskfile related changes for a new PR.
davidlion bb56c10
Readme pass.
davidlion 346dcfe
Apply suggestions from code review
davidlion 5a404d5
Example readme tweak.
davidlion 2de6525
Obey gersemi.
davidlion f02a658
Tweak examples/README.md.
davidlion 1637b6e
Update examples/README.md
davidlion 0688e49
Tweak examples/README.md.
davidlion 0e0651e
Fix dumb mistake.
davidlion 7133493
Large switch env variable to handle library installation selection.
davidlion 1e7cd87
Revert require_argument_values to fix logic mistake; Address rabbit n…
davidlion 24ea39a
Address rabbit comments; Improve style consistency.
davidlion 64f3929
Fix readme install prefix.
davidlion 7687b09
Apply suggestions from code review.
davidlion 2066564
Address review comments.
davidlion 7d89e7e
Refactor repeated string to variable.
davidlion 8453a16
Gersemi
davidlion dbd5f01
Tweak cmake logic with rabbit's help.
davidlion a50a033
Taskfile rewrite squash.
davidlion 23bd52a
Merge remote-tracking branch 'upstream/main' into taskfile-rewrite
davidlion da59010
Merge remote-tracking branch 'upstream/main' into taskfile-rewrite
davidlion a8a6715
Remove old files from merge.
davidlion 6de51cd
deps
davidlion a6be036
build -> ystdlib
davidlion e4d8ef0
Build changes; Update dev-utils to fix boost task dir bug.
davidlion 8a9f7ec
Update test; Switch to verb-*
davidlion f801197
Update examples.
davidlion b32a08d
Update linting.
davidlion 724d94a
Remove now unused utils.
davidlion be182bf
Fix libraries param.
davidlion 692a7e1
Fix test location mistake; Fix readme library separator.
davidlion 57cc01a
Revert most linting changes.
davidlion aa40c4d
Merge remote-tracking branch 'upstream/main' into taskfile-rewrite
davidlion 8e78ec0
Fix examples mistake; Tweak examples readme.
davidlion 27044bc
Revert venv include.
davidlion 04c188f
Revert includes changes and dev-utils bump.
davidlion 4814964
Add include refactoring back in.
davidlion 926a20c
Fix dead compile commands variable.
davidlion bd3b37f
Fix markdown anchors.
davidlion 5e94ac6
Fix yaml line lengths.
davidlion 4800038
Add requires to test:run-unit-test.
davidlion bd23999
Forward ystdlib_LIBRARIES in test task.
davidlion bbf6d8f
Use html for anchor.
davidlion a5d9eea
Refactor to simplify code through minor duplication.
davidlion 0aa2b0c
Fix generate task call in linting.
davidlion 3f5ac82
Fix link in readme.
davidlion 41803a7
Add missing updates pointed out by rabbit.
davidlion 4146a03
Refactor deps and cmds to make more logical sense.
davidlion 6937f07
Apply suggestions from code review.
davidlion 68ae65b
Move build task in tests to deps from cmds.
davidlion 8e49388
Add ystdlib_LIBRARIES explicitly in install tasks.
davidlion 69a7e8e
Explicitly link to cmake build in cmake install.
davidlion 298ece0
lock uv version.
davidlion 8c45963
README attempt.
davidlion 20c5ee2
README tweaks.
davidlion c046aac
Sneaky line length.
davidlion 47adf89
Wrap path in quotes.
davidlion 1d5a47c
Make anchors lower case.
davidlion 76d5f64
README tweaks from Kirk.
davidlion c6dccc2
Update README.md
davidlion ae58bfa
README tweaks.
davidlion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,55 @@ | ||
version: "3" | ||
|
||
includes: | ||
utils: | ||
internal: true | ||
taskfile: "../tools/yscope-dev-utils/exports/taskfiles/utils/utils.yaml" | ||
|
||
vars: | ||
G_CATCH2_LIB_NAME: "Catch2" | ||
G_CATCH2_WORK_DIR: "{{.G_DEPS_DIR}}/{{.G_CATCH2_LIB_NAME}}" | ||
# General variables | ||
G_DEPS_DIR: "{{.G_BUILD_DIR}}/deps" | ||
|
||
# This path must be kept in-sync with its usage in CMakeLists.txt and examples/CMakeLists.txt. | ||
G_DEPS_CMAKE_SETTINGS_DIR: "{{.G_DEPS_DIR}}/cmake-settings" | ||
|
||
tasks: | ||
install-all: | ||
desc: "Install all dependencies required by ystdlib-cpp." | ||
desc: "Install all dependencies required by ystdlib." | ||
run: "once" | ||
cmds: | ||
- "rm -rf '{{.G_DEPS_CMAKE_SETTINGS_DIR}}'" | ||
- "mkdir -p '{{.G_DEPS_CMAKE_SETTINGS_DIR}}'" | ||
- task: ":utils:cmake:install-deps-and-generate-settings" | ||
- task: "utils:cmake:install-deps-and-generate-settings" | ||
vars: | ||
CMAKE_SETTINGS_DIR: "{{.G_DEPS_CMAKE_SETTINGS_DIR}}" | ||
CMAKE_SETTINGS_FILE: "{{.G_DEPS_CMAKE_SETTINGS_FILE}}" | ||
DEP_TASK: "deps:install-all-parallel" | ||
DEP_TASK: "install-all-parallel" | ||
|
||
install-all-parallel: | ||
internal: true | ||
run: "once" | ||
deps: | ||
- "install-boost" | ||
- "install-Catch2" | ||
- "install-catch2" | ||
|
||
install-Catch2: | ||
install-boost: | ||
internal: true | ||
run: "once" | ||
cmds: | ||
- task: ":utils:cmake:install-remote-tar" | ||
- task: "utils:boost:download-and-install" | ||
vars: | ||
CMAKE_PACKAGE_NAME: "{{.G_CATCH2_LIB_NAME}}" | ||
CMAKE_SETTINGS_DIR: "{{.G_DEPS_CMAKE_SETTINGS_DIR}}" | ||
TAR_SHA256: "1ab2de20460d4641553addfdfe6acd4109d871d5531f8f519a52ea4926303087" | ||
TAR_URL: "https://github.com/catchorg/Catch2/archive/refs/tags/v3.8.0.tar.gz" | ||
WORK_DIR: "{{.G_CATCH2_WORK_DIR}}" | ||
FILE_SHA256: "d6c69e4459eb5d6ec208250291221e7ff4a2affde9af6e49c9303b89c687461f" | ||
URL: "https://github.com/boostorg/boost/releases/download/boost-1.87.0\ | ||
/boost-1.87.0-b2-nodocs.tar.gz" | ||
TARGETS: ["headers"] | ||
Bill-hbrhbr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
WORK_DIR: "{{.G_DEPS_DIR}}" | ||
|
||
install-boost: | ||
install-catch2: | ||
internal: true | ||
run: "once" | ||
cmds: | ||
- task: ":utils:boost:download-and-install" | ||
- task: "utils:cmake:install-remote-tar" | ||
vars: | ||
CMAKE_PACKAGE_NAME: "Catch2" | ||
CMAKE_SETTINGS_DIR: "{{.G_DEPS_CMAKE_SETTINGS_DIR}}" | ||
FILE_SHA256: "d6c69e4459eb5d6ec208250291221e7ff4a2affde9af6e49c9303b89c687461f" | ||
URL: "https://github.com/boostorg/boost/releases/download/boost-1.87.0\ | ||
/boost-1.87.0-b2-nodocs.tar.gz" | ||
TARGETS: ["headers"] | ||
WORK_DIR: "{{.G_DEPS_DIR}}/boost" | ||
TAR_SHA256: "1ab2de20460d4641553addfdfe6acd4109d871d5531f8f519a52ea4926303087" | ||
TAR_URL: "https://github.com/catchorg/Catch2/archive/refs/tags/v3.8.0.tar.gz" | ||
WORK_DIR: "{{.G_DEPS_DIR}}" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.