Skip to content

Commit

Permalink
update commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RUIJIEZHONG66166 committed Dec 25, 2024
1 parent 5527a20 commit 61ca7e9
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/_windows_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,23 @@ jobs:
git status
git show -s
git submodule sync && git submodule update --init --recursive
echo "1111111111111"
cd ../torch-xpu-ops
echo "2222222222222"
git rev-parse HEAD >> commit.txt
echo "3333333333333"
for /F %%i in ('type commit.txt') do ( set commit=%%i)
echo "4444444444444"
echo %commit% >> ..\pytorch\third_party\xpu_tmp.txt
echo %commit%
echo "555555555555"
cd ../pytorch
type ..\pytorch\third_party\xpu_tmp.txt
cd ../pytorch
if ${{ inputs.keep_torch_xpu_ops }} == 'true' (
echo "Don't replace torch-xpu-ops!"
) else (
echo "Replace torch-xpu-ops!"
cd third_party
if exist "torch-xpu-ops" (
rmdir /s /q torch-xpu-ops
rmdir /s /q torch-xpu-ops
)
cd ..
Xcopy ..\torch-xpu-ops third_party\torch-xpu-ops /E/H/Y/F/I
for /f "delims=" %%i in (third_party\xpu.txt) do (
set str=%%i
echo %str%
set "str=%commit%"
echo %str%>>third_party\xpu_tmp.txt
)
cd ..
move third_party\xpu_tmp.txt third_party\xpu.txt
type third_party\xpu.txt
)
Expand Down

0 comments on commit 61ca7e9

Please sign in to comment.