Skip to content

Commit 0f912c7

Browse files
committed
Blindfolded PowerShell coding
1 parent d1848a1 commit 0f912c7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,29 @@ jobs:
4848
with:
4949
command: test
5050

51-
- name: Prepare build directory for cache
51+
- name: Prepare build directory for cache (UNIX)
52+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
5253
run: |
5354
find ./target/debug -maxdepth 1 -type f -delete \
5455
&& rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*heavy_test*,*gen_lsp*,*thread_worker*} \
5556
&& rm -f ./target/.rustc_info.json \
5657
&& rm ./target/.slow_tests_cookie
5758
59+
- name: Prepare build directory for cache (Windows)
60+
if: matrix.os == 'windows-latest'
61+
run: >-
62+
(Get-ChildItem ./target/debug -Recurse -Depth 1 -File | Remove-Item) -and
63+
(Remove-Item -Force -Recurse ./target/debug/deps/*ra_*) -and
64+
(Remove-Item -Force -Recurse ./target/debug/deps/*heavy_test*) -and
65+
(Remove-Item -Force -Recurse ./target/debug/deps/*gen_lsp*) -and
66+
(Remove-Item -Force -Recurse ./target/debug/deps/*thread_worker*) -and
67+
(Remove-Item -Force -Recurse ./target/debug/.fingerprint/*ra_*) -and
68+
(Remove-Item -Force -Recurse ./target/debug/.fingerprint/*heavy_test*) -and
69+
(Remove-Item -Force -Recurse ./target/debug/.fingerprint/*gen_lsp*) -and
70+
(Remove-Item -Force -Recurse ./target/debug/.fingerprint/*thread_worker*) -and
71+
(Remove-Item -Force ./target/.rustc_info.json) -and
72+
(Remove-Item ./target/.slow_tests_cookie)
73+
5874
type-script:
5975
name: TypeScript
6076
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)