Marc Durdin
691dc8e618
chore(core): split flags into standard.meson.build
2023-03-09 11:34:54 +07:00
Darcy Wong
6c2126431f
refactor(common): Make build-help into helper functions
2023-03-08 11:42:13 +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
334c316fd3
Merge pull request #8357 from keymanapp/chore/common/remove-vswhere
...
chore(common): remove vswhere
2023-03-07 19:02:38 +11:00
Marc Durdin
a02d48047c
Merge pull request #8344 from keymanapp/chore/common/cleanup-builder-echo
...
chore(common): cleanup build.inc.sh echo
2023-03-07 19:02:29 +11:00
Marc Durdin
f1985ad7a5
chore: address review comments
2023-03-07 09:54:22 +11:00
Marc Durdin
af4b2536bc
chore(common): remove vswhere
...
With #8287 , we no longer use a local copy of vswhere.exe but instead
rely on a standard location for it from the Visual Studio installer.
2023-03-03 04:50:25 +07:00
Marc Durdin
b543b3f341
Update resources/build/npm-publish.inc.sh
...
Co-authored-by: Darcy Wong <darcy_wong@sil.org>
2023-03-02 16:43:24 +11:00
Marc Durdin
ddc447c7e7
fix(common): fixup npm publish
2023-03-02 12:33:18 +07: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
572bd74783
fix(common): builder: skip dependency build for clean action
...
We should not attempt to build dependencies when running `clean`. Note:
if your `clean` action requires dependencies, then something is very,
very wrong and you should fix that!
2023-03-01 08:26:30 +07:00
Marc Durdin
b809a60936
Merge pull request #7054 from keymanapp/feature-ldml
...
epic: LDML keyboard support 🙀
2023-02-28 20:38:00 +11:00
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
38603e8421
Merge pull request #8279 from keymanapp/chore/core/cleanup-meson-build
...
chore(core): cleanup meson build
2023-02-23 13:28:02 +11:00
Marc Durdin
e71d8d3d6d
chore: fail to builder_die
2023-02-23 09:13:14 +07:00
Marc Durdin
9eb472579c
chore: Merge branch 'feature-ldml' into chore/merge-master-to-feature-ldml-A17S7-2
2023-02-23 08:05:31 +07:00
Marc Durdin
b968bcfdfd
Merge branch 'feature-ldml' into chore/core/cleanup-meson-build
2023-02-23 08:49:56 +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
e645b8665f
chore: Merge branch 'feature-ldml' into chore/A17S7-master-to-feature-ldml
...
* core/build.sh -- accept feature-ldml changes (remove call to get_builder_OS)
* developer/src/kmlmc/build.sh -- delete file
* linux/debian/rules -- accept master changes, fixup call to core/build.sh
* linux/ibus-keyman/tests/Makefile.am -- accept master changes, fixup call to core/build.sh
* linux/scripts/build.sh -- accept master changes, fixup call to core/build.sh
* linux/scripts/reconf.sh -- accept master changes
2023-02-22 08:00:08 +07:00
Marc Durdin
366279fc62
chore(common): define standard build path
2023-02-22 07:41:09 +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
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
8f5997a3e6
chore: rename os_id to BUILDER_OS
2023-02-20 08:44:03 +07:00
Steven R. Loomis
bccc1e5720
Merge remote-tracking branch 'upstream/master' into chore/merge-master-20230217-epic-ldml
2023-02-17 18:52:33 -06: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
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
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
Steven R. Loomis
db272e08e7
Merge remote-tracking branch 'upstream/master' into chore/merge-master-20230210-epic-ldml
2023-02-10 11:01:27 -06: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