Marc Durdin
e6ea381aba
chore(common): fix child build error handling
...
Fixes #8322 .
This issue was arising due to subshells masking the exit code.
set -e is not really to be trusted.
2023-02-27 15:09:42 +07:00
Marc Durdin
04189d2e3d
chore(common): avoid -v for testing arrays in builder
2023-02-27 14:05:11 +07:00
Joshua A. Horton
6695c03ed7
change(common): missed part of the suggested tweak
2023-02-24 08:02:55 +07:00
Joshua A. Horton
c4ff8a5da3
chore(common): fix + enhancement per review
2023-02-24 08:01:42 +07:00
Joshua A. Horton
42f03916ad
feat(common): adds warning if described output does not exist when finishing action
2023-02-23 16:18:18 +07:00
Marc Durdin
c0ec8ba76c
Merge pull request #7861 from keymanapp/chore/common/stats
...
chore(common): stats script for planning
2023-02-23 09:06:00 +11:00
Marc Durdin
ce864ea923
chore: update standard script prolog to use builtin instead of dirname
2023-02-22 11:04:15 +07:00
Marc Durdin
b0804dd2a4
chore: use builtin instead of dirname for perf
2023-02-22 10:59:11 +07:00
Marc Durdin
463c7ff907
chore: remove greadlink from standard script prolog
2023-02-22 10:43:06 +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
6df6b0ef18
chore: remove log_error
2023-02-20 09:19:03 +07:00
Marc Durdin
501c317b24
chore: use builder_warn, remove log_warning
2023-02-20 09:18:26 +07:00
Marc Durdin
a004978863
chore: use builder_heading, remove echo_heading
2023-02-20 09:17:51 +07:00
Marc Durdin
4d53a277f3
chore: use builder_die, remove fail
2023-02-20 09:15:38 +07:00
Marc Durdin
c475188c6b
chore: use builder_die, remove die
2023-02-20 09:03:37 +07:00
Marc Durdin
318b4d4478
chore: use builder_warn, remove warn
2023-02-20 08:56:31 +07:00
Marc Durdin
8f5997a3e6
chore: rename os_id to BUILDER_OS
2023-02-20 08:44:03 +07:00
Marc Durdin
f61ef08f05
chore: cleanup shellHelperFunctions
2023-02-20 08:33:23 +07:00
Joshua A. Horton
889d347c02
chore(common): Merge branch 'master' into chore/common/js-ts-dependency-updates
2023-02-16 13:51:31 +07:00
Marc Durdin
670932f922
Merge pull request #8198 from keymanapp/feat/common/builder-parent-child-scripts
...
feat(common): parent-child scripts for builder
2023-02-16 15:28:52 +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
729f3ede72
Update resources/builder.inc.sh
...
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2023-02-16 12:34:56 +11:00
Eberhard Beilharz
4b9f57560b
fix(linux): Try a different approach
2023-02-15 16:15:47 +01:00
Eberhard Beilharz
d1fd20d001
fix(linux): Another fix for GHA package build
2023-02-15 11:10:07 +01:00
Eberhard Beilharz
1c15f83aa0
fix(linux): Fix GHA package build
2023-02-15 08:56:37 +01:00
Marc Durdin
5379145724
chore(common): target_path unbound
2023-02-15 11:30:14 +07:00
Marc Durdin
c0951f8597
feat(common): support custom child projects
2023-02-15 11:21:10 +07:00
Eberhard Beilharz
4a75689f3c
feat(linux): Pass PR# in the event type
...
This allows to see which GHA build ran on which branch/PR.
2023-02-14 17:03:27 +01:00
Eberhard Beilharz
24c6786b7d
chore(linux): Merge remote-tracking branch 'origin/master' into fix/linux/gha
2023-02-14 11:21:37 +01:00
Eberhard Beilharz
81933c8886
Merge pull request #8210 from keymanapp/chore/skippedBuilds
...
chore(common): Report status if no platform needs build
2023-02-14 09:18:33 +01:00
Marc Durdin
3c08d8f6b1
Merge pull request #8197 from keymanapp/chore/common/builder-cleanup-color-test
...
chore(common): automatically apply _builder_check_color
2023-02-11 13:13:30 +11:00
Eberhard Beilharz
9908eed572
fix(linux): Use PR HEAD for status
...
We need to use HEAD of the PR for setting the status, not the
merge commit.
2023-02-10 18:36:21 +01:00
Eberhard Beilharz
c9d806306a
chore(common): Report status if no platform needs build
...
This works around a problem where status.keyman.com keeps a PR in
the "Waiting for build" status because no status messages appear
in the PR because no files changed that affect any platform (e.g.
changes in GHA or documentation) which causes no platform builds
to be triggered.
2023-02-10 17:18:51 +01:00
Eberhard Beilharz
53e10ad0a6
fix(linux): Fix checkout of PRs
...
We need to specify the full ref, otherwise GitHub will add
`refs/heads` and `refs/tags` which won't work for pull requests.
2023-02-09 16:27:32 +01:00
Eberhard Beilharz
54ec47cba0
Merge pull request #7911 from keymanapp/feat/linux/githubdeb
...
feat(linux): Add debian packaging GHA
2023-02-09 10:38:34 +01: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
Joshua A. Horton
a3752dd9ff
chore(common): full-repo ts-node update
2023-02-09 12:39:15 +07:00
Marc Durdin
4598f13ba8
chore(common): automatically apply _builder_check_color
2023-02-09 12:12:18 +07:00
Marc Durdin
a43802e006
Update resources/builder.inc.sh
2023-02-09 15:05:13 +11:00
Joshua A. Horton
878e0f0ea2
chore(common): updates typescript to 4.9.5
2023-02-09 08:40:52 +07:00
Marc Durdin
463b76de5d
chore(common): builder internal dependencies
...
Fixes the scenario where `builder_describe_outputs` is called after
`builder_parse`, so that internal dependencies will be built as
required.
2023-02-08 14:08:47 +07:00
Marc Durdin
983ae43357
chore(common): add builder_term function
2023-02-08 12:49:54 +07:00
Eberhard Beilharz
2bf41ec377
docs: Add quotes around builder_describe_outputs example
...
This makes it clearer that the parameters can't be in the same
string (in contrast to `builder_describe`).
2023-02-07 15:26:23 +01:00
Eberhard Beilharz
e6300f1841
chore(linux): Address code review comments
2023-02-07 10:05:21 +01:00
Eberhard Beilharz
4975a38dd6
feat(linux): Use different types for PR and release builds
...
This makes it more obvious which workflow run is a PR build
and which is a release build.
2023-02-06 17:12:44 +01:00
Eberhard Beilharz
8caa73c500
feat(linux): Add debian packaging GHA
2023-02-06 17:12:43 +01:00
Marc Durdin
8ab6a8e5bc
docs: builder.inc.sh improved documentation around dependencies
2023-02-06 13:56:10 +07:00