File tree 4 files changed +14
-1
lines changed
4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ permissions:
23
23
env :
24
24
aws_region : us-east-1
25
25
s3_bucket : julialang2
26
+ JULIA_LTS : ' 1.10'
26
27
27
28
jobs :
28
29
package-tests :
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ More info: https://github.com/JuliaLang/julia/issues/33817
7
7
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.
8
8
You can either trigger it through the GitHub UI or via an authenticated HTTP request.
9
9
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
+
10
14
### GitHub's UI
11
15
12
16
![ grafik] ( https://user-images.githubusercontent.com/20866761/127783220-fd8167db-5051-4a18-b70a-ea42085a7cb5.png )
Original file line number Diff line number Diff line change 17
17
},
18
18
"stable" : {
19
19
"type" : " boolean"
20
+ },
21
+ "lts" : {
22
+ "type" : " boolean"
20
23
}
21
24
},
22
25
"required" : [
Original file line number Diff line number Diff line change @@ -122,6 +122,11 @@ function is_stable(v::VersionNumber)
122
122
return v. prerelease == () && v. build == ()
123
123
end
124
124
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
+
125
130
# Get list of tags from the Julia repo
126
131
function get_tags ()
127
132
@info (" Probing for tag list..." )
135
140
function main (out_path)
136
141
tags = get_tags ()
137
142
tag_versions = filter (x -> x != = nothing , [vnum_maybe (basename (t[" ref" ])) for t in tags])
138
-
139
143
meta = Dict ()
140
144
number_urls_tried = 0
141
145
number_urls_success = 0
@@ -173,6 +177,7 @@ function main(out_path)
173
177
if ! haskey (meta, version)
174
178
meta[version] = Dict (
175
179
" stable" => is_stable (version),
180
+ " lts" => is_lts (version),
176
181
" files" => Vector {Dict} (),
177
182
)
178
183
end
You can’t perform that action at this time.
0 commit comments