Skip to content

Releases: build to latest, re-create nightly from it every night - #666

Merged
danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:nightly-from-latest
Oct 16, 2026
Merged

danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:nightly-from-latest

Conversation

@danoli3

@danoli3 danoli3 commented Oct 15, 2026

Copy link
Copy Markdown
Member

The nightly release is reused by every master build, so it still shows its first publish date (2023-04-24), and the three build workflows all write into it at the same time.

Master builds → latest

  • build-linux / build-macos / build-vs upload master builds to a latest release instead of nightly. The tag and bleeding builds are unchanged.
  • The tag-moving step (EndBug/latest-tag) now moves latest to the built commit.
  • latest uploads use make_latest: false, so the "Latest" badge stays on nightly.

New nightly.yml (02:00 UTC daily, plus a manual Run workflow button)

  1. Downloads every file from latest into a draft (nightly-staging).
  2. Deletes the old nightly release and tag.
  3. Publishes the draft as nightly at latest's commit, titled nightly YYYY-MM-DD and marked Latest.

The releases page then shows the date it was published. Because the files are uploaded to the draft before the swap, releases/download/nightly/... is only missing for the few seconds between delete and publish. OF's download_pg.sh, create_package.sh and ci/vs/install.sh keep working unchanged.

If latest doesn't exist yet (before the first master build after this merges) or has no files, the job leaves the current nightly alone.

Tested by running the script against a fork with test release names, twice. Each run created a new release with a new published_at, copied both files, pointed the tag at the source commit, and left no drafts. The test releases were deleted afterwards.

Note: the master build step from #662 currently fails on macOS (apothecary's arm64 OpenCV references KleidiCV, which isn't included in the package). Until that's fixed, latest won't get macOS files from master.

…est into a freshly created nightly release every night
@danoli3
danoli3 merged commit 93ea513 into openframeworks:master Oct 16, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant