Skip to content

Commit b6ecf9c

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 b6ecf9c

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

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

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,23 @@ 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: |
77+
find $GITHUB_WORKSPACE -mindepth 1 -delete 2>/dev/null || true
78+
mkdir -p $GITHUB_WORKSPACE
79+
7580
- name: Checkout LLVM
7681
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
82+
with:
83+
ref: ${{ github.ref }}
84+
85+
- name: Verify checkout
86+
run: |
87+
if [ ! -d "unified-runtime" ]; then
88+
echo "ERROR: unified-runtime directory not found after checkout"
89+
ls -la
90+
exit 1
91+
fi
7792
7893
# for some reason it's required to re-configure python for venv to work properly.
7994
- name: Set up Python 3.12
@@ -83,13 +98,12 @@ jobs:
8398
python-version: '3.12'
8499

85100
- name: Install UR python dependencies in venv
86-
working-directory: ./unified-runtime
87101
run: |
88102
python3 -m venv .venv
89103
. .venv/bin/activate
90104
echo "$PATH" >> $GITHUB_PATH
91-
pip install -r third_party/requirements.txt
92-
pip install -r third_party/requirements_testing.txt
105+
pip install -r unified-runtime/third_party/requirements.txt
106+
pip install -r unified-runtime/third_party/requirements_testing.txt
93107
94108
- name: Download DPC++
95109
run: |

0 commit comments

Comments
 (0)