Skip to content

Add nightly releases#764

Merged
Spartan322 merged 1 commit into
masterfrom
add/nightly-builds
Jun 3, 2026
Merged

Add nightly releases#764
Spartan322 merged 1 commit into
masterfrom
add/nightly-builds

Conversation

@Spartan322
Copy link
Copy Markdown
Member

@Spartan322 Spartan322 commented May 31, 2026

Add build workflow action
Add release workflow action
Separate unit test runs from build process
Update ubuntu runner to 22.04
Move pre-commit checks to prek
Pin workflow actions to commits
Remove non-master push builds
Add path changed whitelist for builds workflow
Update ubuntu builds to use GCC 13

Requires the Github variable NIGHTLY_REPOSITORY to be set to the nightly release repository's name. (Already set to OpenVic-Simulation-nightly-builds)
Requires the Github secret NIGHTLY_REPOSITORY_TOKEN to be set.
Requires the Github variable NIGHTLY_CORE_VERSION to be set. (Already set to 0.1)
Requires the Github variable DEFAULT_COMMIT_HASH to an existing repository hash. (Already set to f6c94ddcb62c257f841051395d8511a454e091b7)

These templates follow semver:

  • Template for alpha releases: MAJOR.MINOR.PATCH-alpha.COUNT.
  • Template for beta releases: MAJOR.MINOR.PATCH-beta.COUNT.
  • Template for release candidate releases: MAJOR.MINOR.PATCH-rc.COUNT.
  • Template for full releases: MAJOR.MINOR.PATCH.
  • Template for snapshot releases: MAJOR.MINOR.PATCH-snapshot.COUNT+SHA.
  • Template for dev snapshot releases: MAJOR.MINOR.PATCH-snapshot.dev.COUNT+SHA.
  • Automatically generates nightly releases: MAJOR.MINOR.PATCH-nightly.YYYY.MM.DD+SHA.

.PATCH is optional.
COUNT refers to how many of this release type there is with the release, so the first alpha for 0.1 would be 0.1-alpha.1, COUNT should be reset on the next major, minor, or patch change.

Tags must be pushed in this form for all except for nightly releases. The releases automatically generate the release notes with PRs since the last update. Full releases only consider the difference between non-prerelease releases. Alphas, betas, and release candidates don't consider snapshots or nightly releases. Snapshots don't consider nightly releases. And nightly releases consider every release.

Nightly releases will build their release notes based on the publish date of the releases of the last nightly build compared to the master's latest published release. (not github's latest, prereleases are included)
Nightly releases retrieve the MAJOR.MINOR.PATCH from NIGHTLY_CORE_VERSION.
Nightly releases only publish if a new commit (since the last nightly) which changes the output binary is found.

To disable nightly releases you can set the Github variable DISABLE_NIGHTLY_RELEASES to true.
To disable trigger releases via tags you can set the Github variable DISABLE_TAG_RELEASES to true.
To disable PR and master commit builds you can set the Github variable DISABLE_BUILDS to true.

@Spartan322 Spartan322 requested a review from a team as a code owner May 31, 2026 14:54
@Spartan322 Spartan322 added bug Something isn't working enhancement New feature or request dependencies Pull requests that update a dependency file topic:buildsystem meta labels May 31, 2026
Catylist0
Catylist0 previously approved these changes Jun 1, 2026
@Spartan322 Spartan322 marked this pull request as draft June 1, 2026 12:48
@Spartan322 Spartan322 force-pushed the add/nightly-builds branch 2 times, most recently from bbdf4f6 to 19830d7 Compare June 1, 2026 13:35
Catylist0
Catylist0 previously approved these changes Jun 1, 2026
@Spartan322 Spartan322 force-pushed the add/nightly-builds branch 17 times, most recently from 2883065 to 10ab36a Compare June 1, 2026 21:19
@Spartan322 Spartan322 force-pushed the add/nightly-builds branch 11 times, most recently from 7ef7093 to 975fe48 Compare June 3, 2026 07:41
@Spartan322 Spartan322 marked this pull request as ready for review June 3, 2026 07:54
@Spartan322 Spartan322 force-pushed the add/nightly-builds branch 7 times, most recently from e4b6f32 to f423677 Compare June 3, 2026 10:33
Catylist0
Catylist0 previously approved these changes Jun 3, 2026
Catylist0
Catylist0 previously approved these changes Jun 3, 2026
Add build workflow action
Add release workflow action
Separate unit test runs from build process
Update ubuntu runner to 22.04
Move pre-commit checks to prek
Pin workflow actions to commits
Remove non-master push builds
Add path changed whitelist for builds workflow
Update ubuntu builds to use GCC 13
@Spartan322 Spartan322 merged commit af8b6d2 into master Jun 3, 2026
8 checks passed
@Spartan322 Spartan322 deleted the add/nightly-builds branch June 3, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file enhancement New feature or request meta topic:buildsystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants