Upload scheduled debug builds to Github actions artifacts #736
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.
Resolves #360
DEBUG
global var toDEVELOPMENT
, adds the newDEBUG
global var, and splits the logic between them accordingly.build:debug
task alias, which runs tests and creates a debug build viawebpack:debug
.:debug
compile flag for thenwjs
,compile
,release
anddist
tasks.This flag has to be set at the end of the arguments of each task, eg.
dist:archive_win64:archive_osx64:archive_linux64:debug
.The debug flag gets passed through to the
nwjs
task, where it will use the NW.js SDK flavor instead of the normal flavor, so that the Chromium dev tools become available in the final debug build.The final builds are uploaded as artifacts and can be downloaded from there (requires Github login).
Unfortunately, due to a current restriction of the upload-artifacts action, all files are stored in a nested zip-archive / tarball. There's no workaround for that, as the upload-artifacts action always archives/compresses its inputs. Not building our own archives doesn't work either, as the action doesn't care for file permissions, which would break macOS/Linux builds. Also, our own archives are built deterministically, and this effort shouldn't be ignored or discarded.
TODO: