Skip to content

Commit 5a08d50

Browse files
ci: simplify Homebrew install, remove broken cache
Homebrew caching in GHA is complex - requires Cellar, bin symlinks, and metadata. Simpler to just install each run (~10s). The `brew link` ensures Tauri can find the binaries in PATH. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 931a85b commit 5a08d50

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

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

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,11 @@ jobs:
5151
cache-targets: true
5252
cache-on-failure: true
5353

54-
- name: Cache Homebrew packages
55-
uses: actions/cache@v4
56-
with:
57-
path: |
58-
/opt/homebrew/Cellar/xcodegen
59-
/opt/homebrew/Cellar/libimobiledevice
60-
/opt/homebrew/Cellar/libplist
61-
/opt/homebrew/Cellar/libimobiledevice-glue
62-
/opt/homebrew/Cellar/libtatsu
63-
/opt/homebrew/Cellar/libusbmuxd
64-
key: ${{ runner.os }}-brew-ios-v1
65-
restore-keys: |
66-
${{ runner.os }}-brew-ios-
67-
6854
- name: Install Tauri iOS dependencies
6955
run: |
70-
brew list xcodegen &>/dev/null || brew install xcodegen
71-
brew list libimobiledevice &>/dev/null || brew install libimobiledevice
56+
brew install xcodegen libimobiledevice
57+
# Ensure binaries are linked and in PATH for Tauri
58+
brew link --overwrite xcodegen libimobiledevice 2>/dev/null || true
7259
7360
- name: Install npm dependencies
7461
run: npm ci

0 commit comments

Comments
 (0)