I'm trying to figure out the correct syntax for specifying different beta versions (e.g. 1.8.0 beta3 vs 1.8.0beta2, vs rc, etc.) in Github Actions.
For example, prior to the release of actual 1.8.0, 1.8 fails to match any version but ~1.8.0-0 runs something (presumably one of the betas). What does this version format mean and how should one use it in practice?
@Mason Protter I think you maybe figured this out recently for StaticCompiler?
The setup-julia readme has some examples: https://github.com/julia-actions/setup-julia#examples
The -0 tells it to include all pre-releases. The tilde restricts it to patches starting with 1.8., so ~1.8.0-0 would match all versions ≥ 1.8.0 and < 1.9.0 including 1.8.0-beta2. In the range, it always picks the highest available version. You could also use ~1.8.0-beta2 which includes all pre-releases starting from beta2, e.g. beta3, rc1. Does that help?
There's also a REPL that goes through some release scenarios that you can play around with.
Brenhin Keller has marked this topic as resolved.
Awesome, thank you!
Last updated: Oct 30 2025 at 04:41 UTC