Skip to content

Commit

Permalink
ci: rust caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ChecksumDev committed Aug 7, 2023
1 parent 81b4ff3 commit 28c3af7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,28 @@ jobs:
toolchain: stable
override: true

- name: set up cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
apps/gui/src-tauri/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: delete existing bundles on linux and macos
if: matrix.platform == 'macos-latest' || matrix.platform == 'ubuntu-20.04'
run: |
rm -rf apps/gui/src-tauri/target/release/bundle
- name: delete existing bundles on windows
if: matrix.platform == 'windows-latest'
run: |
Remove-Item -Recurse -Force apps/gui/src-tauri/target/release/bundle
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
Expand Down

0 comments on commit 28c3af7

Please sign in to comment.