Migrate to Github Actions and enable Linux/Windows builds #20
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.
Hello! I've been talking to @yawaramin about making this PR so don't think this is coming out of the blue 😄
The goal of this PR is to also distribute Linux/Windows binaries, not only MacOS. Since I have more experience with Github Actions I'm using that instead of Azure Pipelines.
With this in place, after each PR/commit against master, the pipeline will generate artifacts for each platform and one
release
artifact including them all:The
release
artifact is the one ready to be published in NPM and has the following structure:Inside the
platforms
directory are the artifact for each platform, e.g.:After the package is installed:
postinstall.js
script will be executed which will copy to the root folder the appropriate artifact depending on the current platform and archesyInstallRelease.js
script of that artifact.I also have a published version at @anler/bsdoc that you can test directly if you need so.