Skip to content

Commit 5b09a3b

Browse files
committed
Add links for other builds, to be manually uncommented.
1 parent 58b89c8 commit 5b09a3b

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

llvm/utils/release/github-upload-release.py

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,31 @@ def create_release(repo, release, tag=None, name=None, message=None):
4747
# do the reflowing for us instead.
4848
#
4949
# Once all the atuomatic binary builds have completed, the HTML comments
50-
# in the text below will be removed to reveal the download links.
50+
# with UPPERCASE markers in them will be removed to reveal the download
51+
# links later. Other lines are surrounded in <!-- --> for release uploaders
52+
# to manually uncomment when they upload that package.
5153
message = dedent(
5254
"""\
5355
## LLVM {release} Release
5456
55-
<!-- DOWNLOAD_LINKS_BEGIN
56-
**Linux:**
57-
* [x86_64](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-Linux-X64.tar.xz) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-Linux-X64.tar.xz.jsonl))
58-
* [Arm64](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-Linux-ARM64.tar.xz) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-Linux-ARM64.tar.xz.jsonl))
57+
<!-- AUTOMATIC_DOWNLOAD_LINKS_BEGIN
58+
* [Linux x86_64](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-Linux-X64.tar.xz) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-Linux-X64.tar.xz.jsonl))
59+
* [Linux Arm64](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-Linux-ARM64.tar.xz) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-Linux-ARM64.tar.xz.jsonl))
60+
AUTOMATIC_DOWNLOAD_LINKS_END -->
61+
<!-- * [Linux Armv7-a](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/clang+llvm-{release}-armv7a-linux-gnueabihf.tar.gz) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}}/clang+llvm-{release}-armv7a-linux-gnueabihf.tar.gz.sig)) -->
5962
60-
**macOS:**
61-
* [Apple Silicon](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-macOS-ARM64.tar.xz) (ARM64) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-macOS-ARM64.tar.xz.jsonl))
62-
* [Intel](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-macOS-X64.tar.xz) (x86-64) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-macOS-X64.tar.xz.jsonl))
63-
DOWNLOAD_LINKS_END -->
63+
<!-- AUTOMATIC_DOWNLOAD_LINKS_BEGIN
64+
* [macOS Apple Silicon](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-macOS-ARM64.tar.xz) (ARM64) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-macOS-ARM64.tar.xz.jsonl))
65+
* [macOS Intel](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-macOS-X64.tar.xz) (x86-64) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-macOS-X64.tar.xz.jsonl))
66+
AUTOMATIC_DOWNLOAD_LINKS_END -->
6467
65-
Download links for Linux and macOS will appear here when all the builds have completed. <!-- DOWNLOAD_LINKS_PLACEHOLDER -->
68+
<!-- * Windows x64 (64-bit): [installer](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-win64.exe) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-win64.exe.sig)), [archive](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/clang+llvm-{release}-x86_64-pc-windows-msvc.tar.xz) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/clang+llvm-{release}-x86_64-pc-windows-msvc.tar.xz.sig)) -->
69+
<!-- * Windows x86 (32-bit): [installer](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-win32.exe) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-win32.exe.sig)) -->
70+
<!-- * Windows on Arm (ARM64): [installer](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-woa64.exe) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/LLVM-{release}-woa64.exe.sig)), [archive](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/clang+llvm-{release}-aarch64-pc-windows-msvc.tar.xz) ([signature](https://github.com/llvm/llvm-project/releases/download/llvmorg-{release}/clang+llvm-{release}-aarch64-pc-windows-msvc.tar.xz.sig)) -->
6671
67-
For Windows, and any other variants of platform and architecture, check the full list of release packages at the bottom of this release page.
72+
Download links will appear here once builds have completed. <!-- AUTOMATIC_DOWNLOAD_LINKS_PLACEHOLDER -->
73+
74+
For any other variants of platform and architecture, check the full list of release packages at the bottom of this release page.
6875
6976
## Package Types
7077
@@ -117,9 +124,9 @@ def uncomment_download_links(repo, release):
117124

118125
new_message = []
119126
to_remove = [
120-
"DOWNLOAD_LINKS_BEGIN",
121-
"DOWNLOAD_LINKS_END",
122-
"DOWNLOAD_LINKS_PLACEHOLDER",
127+
"AUTOMATIC_DOWNLOAD_LINKS_BEGIN",
128+
"AUTOMATIC_DOWNLOAD_LINKS_END",
129+
"AUTOMATIC_DOWNLOAD_LINKS_PLACEHOLDER",
123130
]
124131
for line in release.body.splitlines():
125132
for comment in to_remove:

0 commit comments

Comments
 (0)