From ccc3f952521bef789a0f6fce59f4cb2dc9618b69 Mon Sep 17 00:00:00 2001 From: 0xzhang <33616362+0xzhang@users.noreply.github.com> Date: Thu, 5 May 2022 23:06:00 +0800 Subject: [PATCH 1/4] [ci] try to fix CleanUp --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index a34de5b8581fb..a8944d08ab619 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -321,7 +321,7 @@ jobs: - name: Cleanup shell: powershell run: | - remove-item '${{ github.workspace }}\*' -recurse -force + remove-item '${{ github.workspace }}\*' -recurse -Force - uses: actions/checkout@v2 with: From 39b599ea0eb6d991f8a5fad5fb00f11cf5e2c6d2 Mon Sep 17 00:00:00 2001 From: 0xzhang <33616362+0xzhang@users.noreply.github.com> Date: Thu, 5 May 2022 23:40:36 +0800 Subject: [PATCH 2/4] try to fix by use command prompt --- .github/workflows/testing.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index a8944d08ab619..ffba0dfd3b6f7 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -321,7 +321,10 @@ jobs: - name: Cleanup shell: powershell run: | - remove-item '${{ github.workspace }}\*' -recurse -Force + $env:paddle_file = ${{ github.workspace }} + $env:paddle_file = "del $env:paddle_file\venv\Lib\site-packages\paddle\fluid\core_avx.pyd" + cmd /c $env:paddle_file + remove-item '${{ github.workspace }}\*' -recurse -force - uses: actions/checkout@v2 with: From a1c20d203f0f4a083bb888233216b071b0dae2a9 Mon Sep 17 00:00:00 2001 From: 0xzhang <33616362+0xzhang@users.noreply.github.com> Date: Thu, 5 May 2022 23:50:26 +0800 Subject: [PATCH 3/4] fix --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index ffba0dfd3b6f7..9a121c52fbf15 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -321,7 +321,7 @@ jobs: - name: Cleanup shell: powershell run: | - $env:paddle_file = ${{ github.workspace }} + $env:paddle_file = "${{ github.workspace }}" $env:paddle_file = "del $env:paddle_file\venv\Lib\site-packages\paddle\fluid\core_avx.pyd" cmd /c $env:paddle_file remove-item '${{ github.workspace }}\*' -recurse -force From a43a51f6d317e54fe0f7ce8b1a0fd4154458505d Mon Sep 17 00:00:00 2001 From: 0xzhang <33616362+0xzhang@users.noreply.github.com> Date: Thu, 5 May 2022 23:57:01 +0800 Subject: [PATCH 4/4] fix --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9a121c52fbf15..17792d2faf37d 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -322,7 +322,7 @@ jobs: shell: powershell run: | $env:paddle_file = "${{ github.workspace }}" - $env:paddle_file = "del $env:paddle_file\venv\Lib\site-packages\paddle\fluid\core_avx.pyd" + $env:paddle_file = "del /f $env:paddle_file\venv\Lib\site-packages\paddle\fluid\core_avx.pyd" cmd /c $env:paddle_file remove-item '${{ github.workspace }}\*' -recurse -force