Skip to content

Commit c3e13b6

Browse files
committed
chore: use rust caching
1 parent 167cc71 commit c3e13b6

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/_ci-build-tauri-apps.reusable.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ jobs:
6363
- name: 🦀 Install Rust Toolchain
6464
uses: dtolnay/rust-toolchain@stable
6565

66+
- name: 🦀 Rust Cache
67+
uses: Swatinem/rust-cache@v2
68+
with:
69+
workspaces: '.'
70+
cache-on-failure: true
71+
cache-targets: false
72+
6673
# Install Tauri dependencies on Linux
6774
- name: 🔧 Fix ARM64 Package Sources (Linux)
6875
if: runner.os == 'Linux' && runner.arch == 'ARM64'

.github/workflows/_ci-build-tauri-e2e-app.reusable.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ jobs:
6868
- name: 🦀 Install Rust Toolchain
6969
uses: dtolnay/rust-toolchain@stable
7070

71+
- name: 🦀 Rust Cache
72+
uses: Swatinem/rust-cache@v2
73+
with:
74+
workspaces: '.'
75+
cache-on-failure: true
76+
cache-targets: false
77+
7178
- name: 🔧 Fix ARM64 Package Sources (Linux)
7279
if: runner.os == 'Linux' && runner.arch == 'ARM64'
7380
shell: bash

.github/workflows/_ci-build-tauri-package-app.reusable.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ jobs:
5656
- name: 🦀 Install Rust Toolchain
5757
uses: dtolnay/rust-toolchain@stable
5858

59+
- name: 🦀 Rust Cache
60+
uses: Swatinem/rust-cache@v2
61+
with:
62+
workspaces: '.'
63+
cache-on-failure: true
64+
cache-targets: false
65+
5966
- name: 🔧 Fix ARM64 Package Sources (Linux)
6067
if: runner.os == 'Linux' && runner.arch == 'ARM64'
6168
shell: bash

0 commit comments

Comments
 (0)