Skip to content

Commit 26b2138

Browse files
committed
add lts tag
1 parent aee1ba3 commit 26b2138

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.github/workflows/CI.yml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ permissions:
2323
env:
2424
aws_region: us-east-1
2525
s3_bucket: julialang2
26+
JULIA_LTS: '1.10'
2627

2728
jobs:
2829
package-tests:

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ 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
11+
12+
The current Julia LTS version is set via the `JULIA_LTS` variable in the [CI workflow](.github/workflows/CI.yml).
13+
1014
### GitHub's UI
1115

1216
![grafik](https://user-images.githubusercontent.com/20866761/127783220-fd8167db-5051-4a18-b70a-ea42085a7cb5.png)

schema.json

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
},
1818
"stable": {
1919
"type": "boolean"
20+
},
21+
"lts": {
22+
"type": "boolean"
2023
}
2124
},
2225
"required": [

src/VersionsJSONUtil.jl

+6-1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ function is_stable(v::VersionNumber)
122122
return v.prerelease == () && v.build == ()
123123
end
124124

125+
function is_lts(v::VersionNumber)
126+
lts = VersionNumber(ENV["JULIA_LTS"])
127+
return lts.major === v.major && lts.minor === v.minor && isempty(v.prerelease)
128+
end
129+
125130
# Get list of tags from the Julia repo
126131
function get_tags()
127132
@info("Probing for tag list...")
@@ -135,7 +140,6 @@ end
135140
function main(out_path)
136141
tags = get_tags()
137142
tag_versions = filter(x -> x !== nothing, [vnum_maybe(basename(t["ref"])) for t in tags])
138-
139143
meta = Dict()
140144
number_urls_tried = 0
141145
number_urls_success = 0
@@ -173,6 +177,7 @@ function main(out_path)
173177
if !haskey(meta, version)
174178
meta[version] = Dict(
175179
"stable" => is_stable(version),
180+
"lts" => is_lts(version),
176181
"files" => Vector{Dict}(),
177182
)
178183
end

0 commit comments

Comments
 (0)