From 6a7db8c701c329e66b135dd7c2b9beebf4c77fa6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 7 Jan 2020 16:01:41 +0100 Subject: Share cache cleaning logic between OSes --- .github/workflows/ci.yaml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to '.github/workflows/ci.yaml') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index abdec602e..84c04ee72 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,28 +56,13 @@ jobs: with: command: test - - name: Prepare build directory for cache (UNIX) - if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' - run: | - find ./target/debug -maxdepth 1 -type f -delete \ - && rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*heavy_test*,*gen_lsp*,*thread_worker*} \ - && rm -f ./target/.rustc_info.json \ - && rm ./target/.slow_tests_cookie + - name: Prepare cache + run: cargo xtask pre-cache - - name: Prepare build directory for cache (Windows) + - name: Prepare cache 2 if: matrix.os == 'windows-latest' - run: >- - (Get-ChildItem ./target/debug -Recurse -Depth 1 -File | Remove-Item) -and - (Remove-Item -Force -Recurse ./target/debug/deps/*ra_*) -and - (Remove-Item -Force -Recurse ./target/debug/deps/*heavy_test*) -and - (Remove-Item -Force -Recurse ./target/debug/deps/*gen_lsp*) -and - (Remove-Item -Force -Recurse ./target/debug/deps/*thread_worker*) -and - (Remove-Item -Force -Recurse ./target/debug/.fingerprint/*ra_*) -and - (Remove-Item -Force -Recurse ./target/debug/.fingerprint/*heavy_test*) -and - (Remove-Item -Force -Recurse ./target/debug/.fingerprint/*gen_lsp*) -and - (Remove-Item -Force -Recurse ./target/debug/.fingerprint/*thread_worker*) -and - (Remove-Item -Force ./target/.rustc_info.json) -and - (Remove-Item ./target/.slow_tests_cookie) + run: Remove-Item ./target/debug/xtask.exe + type-script: name: TypeScript -- cgit v1.2.3