File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 4
4
# # Eventually, this image will probably be replaced with the actual builder image,
5
5
# # as that will have the necessary toolchains as well, but that image is not built yet.
6
6
7
+ if length (ARGS ) != 1
8
+ throw (ArgumentError (" Usage: llvm-passes.jl [tag_name]" ))
9
+ end
10
+ const tag_name = convert (String, strip (ARGS [1 ])):: String
11
+
7
12
include (" rootfs_utils.jl" )
8
13
9
14
# Build debian-based image with the following extra packages:
@@ -26,4 +31,4 @@ packages = [
26
31
tarball_path = debootstrap (" llvm-passes" ; packages)
27
32
28
33
# Upload it
29
- upload_rootfs_image (tarball_path; tag_name = " v1 " )
34
+ upload_rootfs_image (tarball_path; tag_name)
Original file line number Diff line number Diff line change 84
84
85
85
function upload_rootfs_image (tarball_path:: String ;
86
86
github_repo:: String = " JuliaCI/rootfs-images" ,
87
- tag_name:: String = " v1 " )
87
+ tag_name:: String )
88
88
# Upload it to `github_repo`
89
89
tarball_url = " https://github.com/$(github_repo) /releases/download/$(tag_name) /$(basename (tarball_path)) "
90
90
@info (" Uploading to $(github_repo) @$(tag_name) " , tarball_url)
You can’t perform that action at this time.
0 commit comments