Skip to content

Commit ce76562

Browse files
authored
Merge pull request #917 from nathanchance/parse-debian-clang-update
Updates to parse-debian-clang.py and its usage
2 parents b23d2a4 + 40faf6e commit ce76562

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/clang-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ jobs:
1010
container: tuxmake/x86_64_clang-nightly
1111
steps:
1212
- uses: actions/checkout@v6
13-
- name: parse-debian-clang.py --check
14-
run: python3 scripts/parse-debian-clang.py --check
13+
- name: parse-debian-clang.py
14+
run: scripts/parse-debian-clang.py --check --print-info

scripts/parse-debian-clang.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
now_utc = datetime.datetime.now(datetime.timezone.utc)
4242
delta = now_utc - clang_utc
4343

44-
if args.check and delta.days >= 5:
45-
raise RuntimeError(f"Clang has not been updated for {delta}!")
46-
4744
if args.print_info:
4845
print(
4946
f"clang checkout date: {clang_utc.strftime('%Y-%m-%d %H:%M %Z')} ({delta} ago)"
@@ -52,3 +49,6 @@
5249
print(
5350
f"clang revision link: https://github.com/llvm/llvm-project/commit/{clang_hash}"
5451
)
52+
53+
if args.check and delta.days >= 5:
54+
raise RuntimeError(f"Clang has not been updated for {delta}!")

0 commit comments

Comments
 (0)