Skip to content

Commit e7b1bc4

Browse files
committed
pods: use CDN spec repo; CI: robust pod install with repo update + clean lock/cache on retry
1 parent 341476c commit e7b1bc4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,17 @@ jobs:
7676
${{ runner.os }}-derived-
7777
7878
- name: Pod install
79+
shell: bash
7980
run: |
80-
pod install --repo-update --silent || pod install
81+
set -euo pipefail
82+
pod repo update
83+
if ! pod install --repo-update; then
84+
echo "pod install failed; cleaning lock/cache and retrying..."
85+
rm -f Podfile.lock
86+
rm -rf Pods
87+
pod cache clean --all || true
88+
pod install --repo-update
89+
fi
8190
8291
- name: Detect project or workspace
8392
shell: bash

Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
source 'https://cdn.cocoapods.org/'
2+
13
platform :osx, '10.11'
24

35
target 'Avro Keyboard' do

0 commit comments

Comments
 (0)