Commit graph

25 commits

Author SHA1 Message Date
Eberhard Beilharz
1e734a47f5
docs(common): Fix documentation for builder_describe_internal_dependency
Fixes #9581.
2023-09-18 18:49:04 +02:00
Marc Durdin
97837d2021 feat(common): add builder_run_action shorthand function 2023-05-10 12:50:39 +07:00
Marc Durdin
95b7cb62b4 docs: clarify dependency meanings in build-utils
Relates to #8542.
2023-04-10 08:57:48 +07:00
Marc Durdin
549a8e009e chore(common): define BUILDER_CONFIGURATION env var 2023-03-23 09:21:55 +07:00
Marc Durdin
3302abaf73 chore(common): use builder_trim instead of trim, _builder_trim 2023-03-13 09:53:43 +07:00
Marc Durdin
350808bd5d chore(common): fixup tests and various typo tweaks
When running tests, discovered a number of typos in builder.inc.sh.

Also fixup pathing for builder include for all scripts under resources/
to ensure that we can maximize performance.
2023-03-13 09:43:09 +07:00
Marc Durdin
eb344c235f chore(linux): fixup build-utils ref in gha workflow 2023-03-13 08:43:50 +07:00
Marc Durdin
f41922d749 docs: build-utils standard environment 2023-03-13 08:30:38 +07:00
Marc Durdin
660e98a430 feat(common): support single target for a dependency
Fixes #8397.
2023-03-09 14:54:27 +07:00
Darcy Wong
099900ea51 feat(common): builder.inc.sh inheritable options
Appending a `+` to a builder option will automatically pass that option to child scripts.

Applying #8371 to master branch and @darcywong00 will then re-apply to #7407
2023-03-08 10:33:35 +07:00
Marc Durdin
00017350d3 chore(common): clean up --debug usage in build scripts
Fixes #8373.

Note that the core functionality requested in #8373 is already in place;
this commit just does some cleanup to make this easier to maintain in
the future:

* Uses `builder_is_debug_build` function to test for debug build
  (instead of `builder_has_option --debug`, which would also work but
  using the other function avoids typo issues with the option name).

* Renames `$_builder_debug` to `$_builder_debug_internal` to reduce
  naming confusion

* Documents `$builder_debug`, `builder_is_debug_build`, and clarifies
  usage of `--debug` option.

* Logs command line for dep builds (we could hide this in the future,
  but it certainly doesn't hurt for now!)
2023-03-08 05:40:40 +07:00
Marc Durdin
f1985ad7a5
chore: address review comments 2023-03-07 09:54:22 +11:00
Marc Durdin
3c3dcd8c93 chore(common): update builder docs for builder_describe_internal_dependency 2023-03-01 14:02:42 +07:00
Marc Durdin
269265c1f3 chore(common): update builder docs for builder_describe_internal_dependency 2023-03-01 14:00:11 +07:00
Marc Durdin
3005a82a8f chore: update docs and non-standard readlink refs 2023-02-22 10:41:54 +07:00
Marc Durdin
f30f08ed92
Merge pull request #8173 from keymanapp/docs/build-utils-documentation
docs: builder.inc.sh improved documentation around dependencies
2023-02-20 21:06:54 +11:00
Marc Durdin
9819f1b05a
Update resources/build/build-utils.md
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2023-02-20 21:06:46 +11:00
Marc Durdin
6f3d67c6d2
Update resources/build/build-utils.md 2023-02-16 12:45:20 +11:00
Marc Durdin
772fbe6cca
Apply suggestions from code review
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2023-02-16 12:44:36 +11:00
Marc Durdin
c0951f8597 feat(common): support custom child projects 2023-02-15 11:21:10 +07:00
Marc Durdin
f3f7e04387 feat(common): parent-child scripts for builder
Introduces the `builder_run_child_actions` function. Sample scripts in
resources/build/tests/trees.
2023-02-09 13:45:23 +07:00
Marc Durdin
4598f13ba8 chore(common): automatically apply _builder_check_color 2023-02-09 12:12:18 +07:00
Marc Durdin
983ae43357 chore(common): add builder_term function 2023-02-08 12:49:54 +07:00
Marc Durdin
8ab6a8e5bc docs: builder.inc.sh improved documentation around dependencies 2023-02-06 13:56:10 +07:00
Marc Durdin
a3129adedc refactor(common): rename builder_has_action and document
* `builder_has_action` renamed to `builder_start_action`
* `builder_report` renamed to `builder_finish_action`
* `builder_has_action` created to be a silent test for the action
* Added reasonably comprehensive documentation.
2022-09-21 10:21:35 +10:00