-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep 3 days of nightlies #492
Conversation
Waiting for #488 to adjust |
I think we need a better construct for release channels. For nightly the setup in this PR works fine, but for stable it does not: the primary tag of the release is not a An alternative would be to have some file that just describes the latest release in each channel like:
Note that it is not a JSON file or something similar: it is easy to parse in both Node.js (for the action) and Bash (for |
We should release a new nightly ASAP when this is merged, otherwise installations will fail |
need to use the new foundry paradigm link in the foundryup dir's readme as well :) |
Let me know when you think this is mergeable @gakonst and we can coordinate (need to release the GHA update around the same time) |
Anything blocking this when rebased? @gakonst |
Can we simplify this using the new forge version which shows the commit? Cc @mattsse |
The tags can't really be simplified due to how GitHub releases work, at least not without some secondary release channel to keep track of what the latest nightly is :/ The bulk of the complexity in here is figuring out what the latest pre-release is. GitHub has a redirect to the latest non-pre-release version but not one for prereleases Actually, looking at it, the redirect is for the latest release overall, so this complexity is going to be needed for stable releases instead (as pre-releases would show up as the latest release) |
OK defer to you on it, let's just refactor the inline js to scripts under .github? |
The only alternative I would know of is to have an actual channel file that gives us the latest tag for each release channel, e.g.
And then you would parse that. Just requires either (1) a place to store the file, where we can also modify it from this workflow or (2) that we commit that file directly to this repository from this workflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok let's see how this goes
Cleans up the release workflow a bit and keeps 3 nightlies.
Nightlies are now tagged with
nightly-$SHA
as well asnightly
. To find the latest nightly, you would look up thenightly
tag and find the release atnightly-$SHA
where$SHA
is the commit thatnightly
is pointing to.The workflow only deletes releases that have
nightly
in the tag of the release, which allows us to release other pre-release versions (betas etc.)This also adjusts
foundryup
accordingly and there is a PR forfoundry-toolchain
too: foundry-rs/foundry-toolchain#2. This is a breaking change forfoundryup
.Closes #472