Skip to content

Commit 12e574b

Browse files
[UR][CI] Fix ur-build-hw workflow working-directory failure
- Remove working-directory: ./unified-runtime from the pip install step and use full relative paths to requirements files instead. - Add workspace cleanup step before checkout to remove stale files from previous runs that prevent git checkout from switching cleanly. - Add explicit ref to checkout action to ensure correct ref is used. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9030b78 commit 12e574b

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/ur-build-hw.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,21 @@ jobs:
7272
# - switch to Ninja generator in CMake
7373
# - downloading DPC++ should be integrated somehow; most likely use nightly release.
7474
#
75+
- name: Clean workspace
76+
run: rm -rf $GITHUB_WORKSPACE/* $GITHUB_WORKSPACE/.* 2>/dev/null || true
77+
7578
- name: Checkout LLVM
7679
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
80+
with:
81+
ref: ${{ github.ref }}
82+
83+
- name: Verify checkout
84+
run: |
85+
if [ ! -d "unified-runtime" ]; then
86+
echo "ERROR: unified-runtime directory not found after checkout"
87+
ls -la
88+
exit 1
89+
fi
7790
7891
# for some reason it's required to re-configure python for venv to work properly.
7992
- name: Set up Python 3.12
@@ -83,13 +96,12 @@ jobs:
8396
python-version: '3.12'
8497

8598
- name: Install UR python dependencies in venv
86-
working-directory: ./unified-runtime
8799
run: |
88100
python3 -m venv .venv
89101
. .venv/bin/activate
90102
echo "$PATH" >> $GITHUB_PATH
91-
pip install -r third_party/requirements.txt
92-
pip install -r third_party/requirements_testing.txt
103+
pip install -r unified-runtime/third_party/requirements.txt
104+
pip install -r unified-runtime/third_party/requirements_testing.txt
93105
94106
- name: Download DPC++
95107
run: |

0 commit comments

Comments
 (0)