Skip to content

Commit 812d53d

Browse files
committed
some update
1 parent f31bd0f commit 812d53d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/upload-llvm.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88
# if you want to run this workflow, change the branch name to main,
99
# if you want to turn off it, change it to non existent branch.
10-
branches: [main]
10+
branches: [main-turn-off]
1111

1212
workflow_dispatch:
1313
inputs:
@@ -33,7 +33,6 @@ jobs:
3333

3434
- name: Recreate release with artifacts
3535
env:
36-
# GH_TOKEN: ${{ github.token }}
3736
GH_TOKEN: ${{ secrets.UPLOAD_LLVM }}
3837
TARGET_REPO: clice-io/clice-llvm
3938
run: python3 scripts/upload-llvm.py "${{ inputs.version }}" "${TARGET_REPO}" "${{ inputs.workflow_id }}"

scripts/upload-llvm.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ def parse_build_type(name: str) -> str:
3737
def build_metadata_entry(path: Path, version: str) -> dict:
3838
filename = path.name
3939
return {
40-
"platform": parse_platform(filename),
41-
"build_type": parse_build_type(filename),
42-
"is_lto": "-lto" in filename.lower(),
43-
"filename": filename,
4440
"version": version,
41+
"filename": filename,
4542
"sha256": sha256sum(path),
43+
"lto": "-lto" in filename.lower(),
44+
"asan": "-asan" in filename.lower(),
45+
"platform": parse_platform(filename),
46+
"build_type": parse_build_type(filename),
4647
}
4748

4849

@@ -75,7 +76,7 @@ def main() -> None:
7576
build_metadata_entry(path, version_without_prefix) for path in artifact_files
7677
]
7778

78-
json_path = artifacts_dir / "prebuilt-llvm.json"
79+
json_path = artifacts_dir / "llvm-manifest.json"
7980
with json_path.open("w", encoding="utf-8") as handle:
8081
json.dump(metadata, handle, indent=2)
8182
handle.write("\n")

0 commit comments

Comments
 (0)