diff options
author | Emil Lauridsen <[email protected]> | 2020-01-02 14:54:44 +0000 |
---|---|---|
committer | Emil Lauridsen <[email protected]> | 2020-01-03 18:37:13 +0000 |
commit | 0f912c72cc698f875ef8c288493dc7af54e2ad69 (patch) | |
tree | 4e4d09e7119128b9d0b6f32f3533e509feeb168b /.github/workflows | |
parent | d1848a11a229281e28f6d1f176ad1f4fe02dd9db (diff) |
Blindfolded PowerShell coding
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yaml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0034ce49a..8d3c2865c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml | |||
@@ -48,13 +48,29 @@ jobs: | |||
48 | with: | 48 | with: |
49 | command: test | 49 | command: test |
50 | 50 | ||
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' | ||
52 | run: | | 53 | run: | |
53 | find ./target/debug -maxdepth 1 -type f -delete \ | 54 | find ./target/debug -maxdepth 1 -type f -delete \ |
54 | && rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*heavy_test*,*gen_lsp*,*thread_worker*} \ | 55 | && rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*heavy_test*,*gen_lsp*,*thread_worker*} \ |
55 | && rm -f ./target/.rustc_info.json \ | 56 | && rm -f ./target/.rustc_info.json \ |
56 | && rm ./target/.slow_tests_cookie | 57 | && rm ./target/.slow_tests_cookie |
57 | 58 | ||
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 | |||
58 | type-script: | 74 | type-script: |
59 | name: TypeScript | 75 | name: TypeScript |
60 | runs-on: ubuntu-latest | 76 | runs-on: ubuntu-latest |