ericsink / cb

Apache License 2.0
14 stars 13 forks source link

Build binaries using GitHub Actions #5

Closed filipnavara closed 2 years ago

filipnavara commented 2 years ago

This builds all the binaries on hosted GitHub Actions machines. It uploads the resulting binaries as pipeline artifacts that can be downloaded once the build finishes.

On pull requests the builds artifacts are fed into second job that runs full SQLitePCL.Raw build with unit tests to ensure that nothing gets broken.

Additionally, when a PR is merged into master it does the build again and creates a staging branch that contains auto-generated commit with all the new binaries.

filipnavara commented 2 years ago

Sample run of the pipeline (on a fork): https://github.com/filipnavara/cb/pull/1/checks Artifacts of the sample run available for download: https://github.com/filipnavara/cb/actions/runs/1095139724 (still running at the time of the writing) Auto-generated staging branch: https://github.com/filipnavara/cb/tree/staging (from previous build since the scripts now trigger only once the PR is merged)

filipnavara commented 2 years ago

I've added the unit tests for PRs now.