Skip to content

Commit 5e8168a

Browse files
ci: set git fetch depth, swap rust cache
1 parent e4ad993 commit 5e8168a

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/build-ios-app.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
steps:
2323
- name: Checkout repository
2424
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 1
2527

2628
- name: Setup Ruby
2729
uses: ruby/setup-ruby@v1
@@ -40,18 +42,12 @@ jobs:
4042
with:
4143
targets: aarch64-apple-ios
4244

43-
- name: Cache Cargo
44-
uses: actions/cache@v4
45+
- name: Cache Rust
46+
uses: Swatinem/rust-cache@v2
4547
with:
46-
path: |
47-
~/.cargo/bin/
48-
~/.cargo/registry/index/
49-
~/.cargo/registry/cache/
50-
~/.cargo/git/db/
51-
src-tauri/target/
52-
key: ${{ runner.os }}-cargo-ios-${{ hashFiles('**/Cargo.lock') }}
53-
restore-keys: |
54-
${{ runner.os }}-cargo-ios-
48+
workspaces: src-tauri -> target
49+
cache-targets: true
50+
cache-on-failure: true
5551

5652
- name: Install npm dependencies
5753
run: npm ci

0 commit comments

Comments
 (0)