Skip to content

Commit cecb12e

Browse files
committed
tag multiple lts releases
1 parent 19f0a1e commit cecb12e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/CI.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ permissions:
2323
env:
2424
aws_region: us-east-1
2525
s3_bucket: julialang2
26-
JULIA_LTS: '1.10'
26+
JULIA_LTS: '1.0 1.6 1.10'
27+
2728

2829
jobs:
2930
package-tests:

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ More info: https://github.com/JuliaLang/julia/issues/33817
77
To trigger a rebuild of the `versions.json` file and to upload it to S3, you need to manually trigger the `CI` workflow in this repo.
88
You can either trigger it through the GitHub UI or via an authenticated HTTP request.
99

10-
### Set LTS tag
10+
### Setting the LTS field
1111

12-
The current Julia LTS version is set via the `JULIA_LTS` variable in the [CI workflow](.github/workflows/CI.yml).
12+
Julia LTS versions are set via the `JULIA_LTS` variable in the [CI workflow](.github/workflows/CI.yml).
1313

1414
### GitHub's UI
1515

src/VersionsJSONUtil.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ function is_stable(v::VersionNumber)
123123
end
124124

125125
function is_lts(v::VersionNumber)
126-
lts = VersionNumber(ENV["JULIA_LTS"])
127-
return lts.major === v.major && lts.minor === v.minor && isempty(v.prerelease)
126+
lts_list = VersionNumber.(split(ENV["JULIA_LTS"], " "))
127+
return any(lts -> lts.major === v.major && lts.minor === v.minor && isempty(v.prerelease), lts_list)
128128
end
129129

130130
# Get list of tags from the Julia repo

0 commit comments

Comments
 (0)