maint(windows): consider GO_FAST env variable in add_zip_files 🗜️#14338
maint(windows): consider GO_FAST env variable in add_zip_files 🗜️#14338ermshiperete merged 5 commits intomasterfrom
GO_FAST env variable in add_zip_files 🗜️#14338Conversation
User Test ResultsTest specification and instructions User tests are not required |
GO_FAST env variable in add_zip_files 🗜️
rc-swag
left a comment
There was a problem hiding this comment.
lgtm
Is it correct the GO_FAST ability has been added but it isn't actually used in the build script?
|
Looked up some of the history of Seems like the use case to make test builds faster |
29a625d to
b79595d
Compare
|
Is there another usage at keyman/windows/src/engine/inst/build.sh Line 23 in b79595d |
I overlooked that file reference. It doesn't do anything with the file, so I just removed the reference. Thanks! |
This changes makes use of the logic that used to be in `win/zip.inc.sh`: if the environment variable `GO_FAST` is set to 1, we use a low compression level, resulting in faster builds. If it is set to 0 we use maximum compression, resulting in slower builds. If `GO_FAST` is not set we don't specify the compression level and rely on the defaults. Test-bot: skip
This makes use of the new functionality refactored in the previous commit by replacing the use of the `wzzip` function with `add_zip_files`. Test-bot: skip
Addresses code review comment.
57aaa35 to
e4c1867
Compare
41cd44a to
71af4a9
Compare
|
Changes in this pull request will be available for download in Keyman version 19.0.88-alpha |
This changes makes use of the logic that used to be in
win/zip.inc.sh: if the environment variableGO_FASTis set to 1, we use a low compression level, resulting in faster builds. If it is set to 0 we use maximum compression, resulting in slower builds. IfGO_FASTis not set we don't specify the compression level and rely on the defaults.Also make use of the new functionality by replacing the use of the
wzzipfunction.Note:
GO_FASTgets set in some existing scripts.Test-bot: skip