Skip to content

Commit 66c7638

Browse files
authored
Set-up circular deps check to use PMC for fast-track (microsoft#14841)
1 parent e32a4e4 commit 66c7638

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/check-circular-deps.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,25 @@ jobs:
1919
- name: Workflow trigger checkout
2020
uses: actions/checkout@v4
2121

22+
- name: Determine DAILY_BUILD_ID value
23+
run: |
24+
echo "GitHub 'base_ref': ${{ github.base_ref }}"
25+
echo "GitHub 'ref': ${{ github.ref }}"
26+
27+
daily_build_id=
28+
if [[ "${{ github.base_ref }}" == fasttrack/* || "${{ github.ref }}" == refs/heads/fasttrack/* ]]; then
29+
echo "Building against a fast-track branch. Will use PMC RPM repo for reference."
30+
else
31+
echo "Not building against a fast-track branch. Will use daily build LKG RPM repo for reference."
32+
daily_build_id=lkg
33+
fi
34+
35+
echo "DAILY_BUILD_ID is set to '$daily_build_id'"
36+
echo "daily_build_id=$daily_build_id" >> $GITHUB_ENV
37+
2238
- name: Check for circular dependencies
2339
run: |
2440
echo "Checking for circular dependency loops..."
2541
# Setup the toolchain using the LKG daily build, and then make the full package graph.
2642
# This will fail if any circular dependency loops are detected in the core SPECs.
27-
sudo make -C toolkit graph REBUILD_TOOLS=y DAILY_BUILD_ID=lkg -j30
43+
sudo make -C toolkit graph REBUILD_TOOLS=y DAILY_BUILD_ID="${{ env.daily_build_id }}" -j30

0 commit comments

Comments
 (0)