Skip to content

Commit b9282cb

Browse files
sunyabpixar-oss
authored andcommitted
github: Don't assume GitHub workspace path on Windows
The "Test USD" job on Windows requires PATH and PYTHONPATH to be updated to point to various USD build directories. These were hard-coded to paths on the D:\ since that's where we believed the workspace was located. However, we've recently observed runs where the workspace was on C:\ instead, causing tests to fail. To avoid this issue, we now use the github.workspace variable instead of assuming a specific workspace path. (Internal change: 2368631)
1 parent e80e8e1 commit b9282cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/buildusd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ jobs:
188188
- name: Test USD
189189
working-directory: ./USDgen/build/OpenUSD
190190
run: |
191-
call set PATH=D:\a\OpenUSD\OpenUSD\USDinst\bin;D:\a\OpenUSD\OpenUSD\USDinst\lib;D:\a\OpenUSD\OpenUSD\USDinst\share\usd\examples\plugin;D:\a\OpenUSD\OpenUSD\USDinst\plugin\usd;%PATH%
192-
call set PYTHONPATH=D:\a\OpenUSD\OpenUSD\USDinst\lib\python;%PYTHONPATH%
191+
call set PATH=${{ github.workspace }}\USDinst\bin;${{ github.workspace }}\USDinst\lib;${{ github.workspace }}\USDinst\share\usd\examples\plugin;${{ github.workspace }}\USDinst\plugin\usd;%PATH%
192+
call set PYTHONPATH=${{ github.workspace }}\USDinst\lib\python;%PYTHONPATH%
193193
# Internal ticket USD-8035
194194
ctest -V -C Release --exclude-regex "TfPathUtils|testExecGeomXformable_Perf_Large"
195195
shell: cmd

0 commit comments

Comments
 (0)