Skip to content

Commit 56ca30b

Browse files
partoufclaude
andcommitted
Add repos for clang fork builds to enable activity checking
Added GitHub repo URLs and branches for clang builds from forks: - autonsdmi, bb_p2996, chrisbazley, cppx variants - ericwf_contracts, implicit_constexpr, clangir, lifetime - mizvekov_resugar, p1061, p1974, p2561, p2998 - p3068, p3309, p3367, p3334, p3372, p3385, p3412, p3776 - patmat, reflection, relocatable, variadic_friends, widberg These builds will now skip if their source repos have no commits in the last 7 days, saving self-hosted runner resources. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent d391c34 commit 56ca30b

29 files changed

+1232
-28
lines changed

.github/workflows/build-daily-clang_autonsdmi.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,50 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
check-activity:
11+
runs-on: ubuntu-latest
12+
outputs:
13+
should_build: ${{ steps.check.outputs.should_build }}
14+
steps:
15+
- name: Check for recent commits
16+
id: check
17+
run: |
18+
REPOS='["https://github.com/cor3ntin/llvm-project/tree/experiments"]'
19+
STALE_DAYS=7
20+
21+
SINCE_DATE=$(date -d "${STALE_DAYS} days ago" --iso-8601=seconds)
22+
echo "Checking for commits since ${SINCE_DATE} (${STALE_DAYS} days ago)"
23+
HAS_RECENT=false
24+
25+
for repo in $(echo "$REPOS" | jq -r '.[]'); do
26+
REPO_PATH=$(echo "$repo" | sed -E 's|https://github.com/([^/]+/[^/]+).*|\1|')
27+
BRANCH=$(echo "$repo" | sed -n -E 's|https://github.com/[^/]+/[^/]+/tree/(.+)|\1|p')
28+
29+
if [ -n "$BRANCH" ]; then
30+
echo "Checking $REPO_PATH (branch: $BRANCH) for recent commits..."
31+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?sha=${BRANCH}&since=${SINCE_DATE}&per_page=1" || echo "[]")
32+
else
33+
echo "Checking $REPO_PATH (default branch) for recent commits..."
34+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?since=${SINCE_DATE}&per_page=1" || echo "[]")
35+
fi
36+
37+
if [ "$(echo "$COMMITS" | jq 'length')" -gt 0 ]; then
38+
echo "Found recent commits in $repo"
39+
HAS_RECENT=true
40+
break
41+
fi
42+
done
43+
44+
if [ "$HAS_RECENT" = "true" ]; then
45+
echo "should_build=true" >> "$GITHUB_OUTPUT"
46+
else
47+
echo "No recent commits in any repo (within ${STALE_DAYS} days), skipping build"
48+
echo "should_build=false" >> "$GITHUB_OUTPUT"
49+
fi
50+
1051
daily-build:
52+
needs: check-activity
53+
if: ${{ needs.check-activity.outputs.should_build == 'true' }}
1154
runs-on: [ 'self-hosted', 'ce', 'linux', 'x64' ]
1255
steps:
1356
- name: Start from a clean directory

.github/workflows/build-daily-clang_bb_p2996.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,50 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
check-activity:
11+
runs-on: ubuntu-latest
12+
outputs:
13+
should_build: ${{ steps.check.outputs.should_build }}
14+
steps:
15+
- name: Check for recent commits
16+
id: check
17+
run: |
18+
REPOS='["https://github.com/bloomberg/clang-p2996/tree/p2996"]'
19+
STALE_DAYS=7
20+
21+
SINCE_DATE=$(date -d "${STALE_DAYS} days ago" --iso-8601=seconds)
22+
echo "Checking for commits since ${SINCE_DATE} (${STALE_DAYS} days ago)"
23+
HAS_RECENT=false
24+
25+
for repo in $(echo "$REPOS" | jq -r '.[]'); do
26+
REPO_PATH=$(echo "$repo" | sed -E 's|https://github.com/([^/]+/[^/]+).*|\1|')
27+
BRANCH=$(echo "$repo" | sed -n -E 's|https://github.com/[^/]+/[^/]+/tree/(.+)|\1|p')
28+
29+
if [ -n "$BRANCH" ]; then
30+
echo "Checking $REPO_PATH (branch: $BRANCH) for recent commits..."
31+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?sha=${BRANCH}&since=${SINCE_DATE}&per_page=1" || echo "[]")
32+
else
33+
echo "Checking $REPO_PATH (default branch) for recent commits..."
34+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?since=${SINCE_DATE}&per_page=1" || echo "[]")
35+
fi
36+
37+
if [ "$(echo "$COMMITS" | jq 'length')" -gt 0 ]; then
38+
echo "Found recent commits in $repo"
39+
HAS_RECENT=true
40+
break
41+
fi
42+
done
43+
44+
if [ "$HAS_RECENT" = "true" ]; then
45+
echo "should_build=true" >> "$GITHUB_OUTPUT"
46+
else
47+
echo "No recent commits in any repo (within ${STALE_DAYS} days), skipping build"
48+
echo "should_build=false" >> "$GITHUB_OUTPUT"
49+
fi
50+
1051
daily-build:
52+
needs: check-activity
53+
if: ${{ needs.check-activity.outputs.should_build == 'true' }}
1154
runs-on: [ 'self-hosted', 'ce', 'linux', 'x64' ]
1255
steps:
1356
- name: Start from a clean directory

.github/workflows/build-daily-clang_chrisbazley.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,50 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
check-activity:
11+
runs-on: ubuntu-latest
12+
outputs:
13+
should_build: ${{ steps.check.outputs.should_build }}
14+
steps:
15+
- name: Check for recent commits
16+
id: check
17+
run: |
18+
REPOS='["https://github.com/chrisbazley/llvm-project/tree/main"]'
19+
STALE_DAYS=7
20+
21+
SINCE_DATE=$(date -d "${STALE_DAYS} days ago" --iso-8601=seconds)
22+
echo "Checking for commits since ${SINCE_DATE} (${STALE_DAYS} days ago)"
23+
HAS_RECENT=false
24+
25+
for repo in $(echo "$REPOS" | jq -r '.[]'); do
26+
REPO_PATH=$(echo "$repo" | sed -E 's|https://github.com/([^/]+/[^/]+).*|\1|')
27+
BRANCH=$(echo "$repo" | sed -n -E 's|https://github.com/[^/]+/[^/]+/tree/(.+)|\1|p')
28+
29+
if [ -n "$BRANCH" ]; then
30+
echo "Checking $REPO_PATH (branch: $BRANCH) for recent commits..."
31+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?sha=${BRANCH}&since=${SINCE_DATE}&per_page=1" || echo "[]")
32+
else
33+
echo "Checking $REPO_PATH (default branch) for recent commits..."
34+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?since=${SINCE_DATE}&per_page=1" || echo "[]")
35+
fi
36+
37+
if [ "$(echo "$COMMITS" | jq 'length')" -gt 0 ]; then
38+
echo "Found recent commits in $repo"
39+
HAS_RECENT=true
40+
break
41+
fi
42+
done
43+
44+
if [ "$HAS_RECENT" = "true" ]; then
45+
echo "should_build=true" >> "$GITHUB_OUTPUT"
46+
else
47+
echo "No recent commits in any repo (within ${STALE_DAYS} days), skipping build"
48+
echo "should_build=false" >> "$GITHUB_OUTPUT"
49+
fi
50+
1051
daily-build:
52+
needs: check-activity
53+
if: ${{ needs.check-activity.outputs.should_build == 'true' }}
1154
runs-on: [ 'self-hosted', 'ce', 'linux', 'x64' ]
1255
steps:
1356
- name: Start from a clean directory

.github/workflows/build-daily-clang_cppx.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,50 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
check-activity:
11+
runs-on: ubuntu-latest
12+
outputs:
13+
should_build: ${{ steps.check.outputs.should_build }}
14+
steps:
15+
- name: Check for recent commits
16+
id: check
17+
run: |
18+
REPOS='["https://github.com/lock3/meta/tree/compiler-explorer"]'
19+
STALE_DAYS=7
20+
21+
SINCE_DATE=$(date -d "${STALE_DAYS} days ago" --iso-8601=seconds)
22+
echo "Checking for commits since ${SINCE_DATE} (${STALE_DAYS} days ago)"
23+
HAS_RECENT=false
24+
25+
for repo in $(echo "$REPOS" | jq -r '.[]'); do
26+
REPO_PATH=$(echo "$repo" | sed -E 's|https://github.com/([^/]+/[^/]+).*|\1|')
27+
BRANCH=$(echo "$repo" | sed -n -E 's|https://github.com/[^/]+/[^/]+/tree/(.+)|\1|p')
28+
29+
if [ -n "$BRANCH" ]; then
30+
echo "Checking $REPO_PATH (branch: $BRANCH) for recent commits..."
31+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?sha=${BRANCH}&since=${SINCE_DATE}&per_page=1" || echo "[]")
32+
else
33+
echo "Checking $REPO_PATH (default branch) for recent commits..."
34+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?since=${SINCE_DATE}&per_page=1" || echo "[]")
35+
fi
36+
37+
if [ "$(echo "$COMMITS" | jq 'length')" -gt 0 ]; then
38+
echo "Found recent commits in $repo"
39+
HAS_RECENT=true
40+
break
41+
fi
42+
done
43+
44+
if [ "$HAS_RECENT" = "true" ]; then
45+
echo "should_build=true" >> "$GITHUB_OUTPUT"
46+
else
47+
echo "No recent commits in any repo (within ${STALE_DAYS} days), skipping build"
48+
echo "should_build=false" >> "$GITHUB_OUTPUT"
49+
fi
50+
1051
daily-build:
52+
needs: check-activity
53+
if: ${{ needs.check-activity.outputs.should_build == 'true' }}
1154
runs-on: [ 'self-hosted', 'ce', 'linux', 'x64' ]
1255
steps:
1356
- name: Start from a clean directory

.github/workflows/build-daily-clang_cppx_ext.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,50 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
check-activity:
11+
runs-on: ubuntu-latest
12+
outputs:
13+
should_build: ${{ steps.check.outputs.should_build }}
14+
steps:
15+
- name: Check for recent commits
16+
id: check
17+
run: |
18+
REPOS='["https://github.com/lock3/cppx/tree/cppx"]'
19+
STALE_DAYS=7
20+
21+
SINCE_DATE=$(date -d "${STALE_DAYS} days ago" --iso-8601=seconds)
22+
echo "Checking for commits since ${SINCE_DATE} (${STALE_DAYS} days ago)"
23+
HAS_RECENT=false
24+
25+
for repo in $(echo "$REPOS" | jq -r '.[]'); do
26+
REPO_PATH=$(echo "$repo" | sed -E 's|https://github.com/([^/]+/[^/]+).*|\1|')
27+
BRANCH=$(echo "$repo" | sed -n -E 's|https://github.com/[^/]+/[^/]+/tree/(.+)|\1|p')
28+
29+
if [ -n "$BRANCH" ]; then
30+
echo "Checking $REPO_PATH (branch: $BRANCH) for recent commits..."
31+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?sha=${BRANCH}&since=${SINCE_DATE}&per_page=1" || echo "[]")
32+
else
33+
echo "Checking $REPO_PATH (default branch) for recent commits..."
34+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?since=${SINCE_DATE}&per_page=1" || echo "[]")
35+
fi
36+
37+
if [ "$(echo "$COMMITS" | jq 'length')" -gt 0 ]; then
38+
echo "Found recent commits in $repo"
39+
HAS_RECENT=true
40+
break
41+
fi
42+
done
43+
44+
if [ "$HAS_RECENT" = "true" ]; then
45+
echo "should_build=true" >> "$GITHUB_OUTPUT"
46+
else
47+
echo "No recent commits in any repo (within ${STALE_DAYS} days), skipping build"
48+
echo "should_build=false" >> "$GITHUB_OUTPUT"
49+
fi
50+
1051
daily-build:
52+
needs: check-activity
53+
if: ${{ needs.check-activity.outputs.should_build == 'true' }}
1154
runs-on: [ 'self-hosted', 'ce', 'linux', 'x64' ]
1255
steps:
1356
- name: Start from a clean directory

.github/workflows/build-daily-clang_cppx_p2320.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,50 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
check-activity:
11+
runs-on: ubuntu-latest
12+
outputs:
13+
should_build: ${{ steps.check.outputs.should_build }}
14+
steps:
15+
- name: Check for recent commits
16+
id: check
17+
run: |
18+
REPOS='["https://github.com/lock3/meta/tree/paper/p2320"]'
19+
STALE_DAYS=7
20+
21+
SINCE_DATE=$(date -d "${STALE_DAYS} days ago" --iso-8601=seconds)
22+
echo "Checking for commits since ${SINCE_DATE} (${STALE_DAYS} days ago)"
23+
HAS_RECENT=false
24+
25+
for repo in $(echo "$REPOS" | jq -r '.[]'); do
26+
REPO_PATH=$(echo "$repo" | sed -E 's|https://github.com/([^/]+/[^/]+).*|\1|')
27+
BRANCH=$(echo "$repo" | sed -n -E 's|https://github.com/[^/]+/[^/]+/tree/(.+)|\1|p')
28+
29+
if [ -n "$BRANCH" ]; then
30+
echo "Checking $REPO_PATH (branch: $BRANCH) for recent commits..."
31+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?sha=${BRANCH}&since=${SINCE_DATE}&per_page=1" || echo "[]")
32+
else
33+
echo "Checking $REPO_PATH (default branch) for recent commits..."
34+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?since=${SINCE_DATE}&per_page=1" || echo "[]")
35+
fi
36+
37+
if [ "$(echo "$COMMITS" | jq 'length')" -gt 0 ]; then
38+
echo "Found recent commits in $repo"
39+
HAS_RECENT=true
40+
break
41+
fi
42+
done
43+
44+
if [ "$HAS_RECENT" = "true" ]; then
45+
echo "should_build=true" >> "$GITHUB_OUTPUT"
46+
else
47+
echo "No recent commits in any repo (within ${STALE_DAYS} days), skipping build"
48+
echo "should_build=false" >> "$GITHUB_OUTPUT"
49+
fi
50+
1051
daily-build:
52+
needs: check-activity
53+
if: ${{ needs.check-activity.outputs.should_build == 'true' }}
1154
runs-on: [ 'self-hosted', 'ce', 'linux', 'x64' ]
1255
steps:
1356
- name: Start from a clean directory

.github/workflows/build-daily-clang_ericwf_contracts.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,50 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
check-activity:
11+
runs-on: ubuntu-latest
12+
outputs:
13+
should_build: ${{ steps.check.outputs.should_build }}
14+
steps:
15+
- name: Check for recent commits
16+
id: check
17+
run: |
18+
REPOS='["https://github.com/efcs/llvm-project/tree/contracts-nightly"]'
19+
STALE_DAYS=7
20+
21+
SINCE_DATE=$(date -d "${STALE_DAYS} days ago" --iso-8601=seconds)
22+
echo "Checking for commits since ${SINCE_DATE} (${STALE_DAYS} days ago)"
23+
HAS_RECENT=false
24+
25+
for repo in $(echo "$REPOS" | jq -r '.[]'); do
26+
REPO_PATH=$(echo "$repo" | sed -E 's|https://github.com/([^/]+/[^/]+).*|\1|')
27+
BRANCH=$(echo "$repo" | sed -n -E 's|https://github.com/[^/]+/[^/]+/tree/(.+)|\1|p')
28+
29+
if [ -n "$BRANCH" ]; then
30+
echo "Checking $REPO_PATH (branch: $BRANCH) for recent commits..."
31+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?sha=${BRANCH}&since=${SINCE_DATE}&per_page=1" || echo "[]")
32+
else
33+
echo "Checking $REPO_PATH (default branch) for recent commits..."
34+
COMMITS=$(curl -sf "https://api.github.com/repos/${REPO_PATH}/commits?since=${SINCE_DATE}&per_page=1" || echo "[]")
35+
fi
36+
37+
if [ "$(echo "$COMMITS" | jq 'length')" -gt 0 ]; then
38+
echo "Found recent commits in $repo"
39+
HAS_RECENT=true
40+
break
41+
fi
42+
done
43+
44+
if [ "$HAS_RECENT" = "true" ]; then
45+
echo "should_build=true" >> "$GITHUB_OUTPUT"
46+
else
47+
echo "No recent commits in any repo (within ${STALE_DAYS} days), skipping build"
48+
echo "should_build=false" >> "$GITHUB_OUTPUT"
49+
fi
50+
1051
daily-build:
52+
needs: check-activity
53+
if: ${{ needs.check-activity.outputs.should_build == 'true' }}
1154
runs-on: [ 'self-hosted', 'ce', 'linux', 'x64' ]
1255
steps:
1356
- name: Start from a clean directory

0 commit comments

Comments
 (0)