From f90d912568a0aee7b196700a502bf3e5dc5a26c9 Mon Sep 17 00:00:00 2001 From: lights0123 Date: Mon, 5 Apr 2021 17:29:00 -0400 Subject: [PATCH] Ensure cache is valid --- .github/workflows/ci.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ yarn.lock | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d09842..c8af38a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,10 @@ jobs: sudo apt-get install -y webkit2gtk-4.0 squashfs-tools - name: install app dependencies run: yarn + - name: ensure cache is valid + if: runner.os != 'Windows' + run: cargo check || rm -rf ~/.cargo/registry + working-directory: ./desktop/src-tauri - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2395b9..2267e35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,6 +83,10 @@ jobs: sudo apt-get install -y webkit2gtk-4.0 squashfs-tools - name: install app dependencies run: yarn + - name: ensure cache is valid + if: runner.os != 'Windows' + run: cargo check || rm -rf ~/.cargo/registry + working-directory: ./desktop/src-tauri - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/yarn.lock b/yarn.lock index 14b0a28..435a653 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3435,9 +3435,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001133, caniuse-lite@^1.0.30001135: - version "1.0.30001143" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001143.tgz#560f2cfb9f313d1d7e52eb8dac0e4e36c8821c0d" - integrity sha512-p/PO5YbwmCpBJPxjOiKBvAlUPgF8dExhfEpnsH+ys4N/791WHrYrGg0cyHiAURl5hSbx5vIcjKmQAP6sHDYH3w== + version "1.0.30001207" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001207.tgz" + integrity sha512-UPQZdmAsyp2qfCTiMU/zqGSWOYaY9F9LL61V8f+8MrubsaDGpaHD9HRV/EWZGULZn0Hxu48SKzI5DgFwTvHuYw== case-sensitive-paths-webpack-plugin@^2.3.0: version "2.3.0"