Skip to content

Commit cbe860b

Browse files
committed
feat(github): ios cache
1 parent 1fb5232 commit cbe860b

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

.github/workflows/reusable-ios-checks.yaml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ jobs:
5555
- name: Pod install
5656
working-directory: ./DemoApp
5757
run: |
58-
pod cache clean --all
59-
rm -rf Pods
60-
rm -rf Pods.xcodeproj
6158
pod install
6259
6360
- name: Decode signing key file
@@ -74,38 +71,16 @@ jobs:
7471
cp ./DemoApp/REES46Demo/Supporting\ Files/GoogleService-Info.plist ./DemoApp/REES46.xcodeproj/xcshareddata/xcschemes/GoogleService-Info.plist
7572
cp ./DemoApp/REES46Demo/Supporting\ Files/GoogleService-Info.plist ./DemoApp/REES46Demo/GoogleService-Info.plist
7673
77-
- name: Use tree to show all files
78-
run: |
79-
print_tree() {
80-
find "$1" | awk '
81-
BEGIN {
82-
FS="/"
83-
OFS="/"
84-
}
85-
{
86-
depth = split($0, path, "/") - 1
87-
for (i = 1; i <= depth; i++) {
88-
printf "| "
89-
}
90-
printf "|-- %s\n", path[depth + 1]
91-
}'
92-
}
93-
94-
start_dir="${1:-.}"
95-
96-
echo "$start_dir"
97-
print_tree "$start_dir"
98-
9974
- name: Build
10075
run: |
101-
xcodebuild clean build -workspace ./DemoApp/REES46.xcworkspace -scheme REES46Demo \
76+
xcodebuild build -workspace ./DemoApp/REES46.xcworkspace -scheme REES46Demo \
10277
-sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \
10378
CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED='NO' CODE_SIGN_ENTITLEMENTS=''
10479
10580
- name: Run tests
10681
if: ${{ !cancelled() }}
10782
run: |
108-
xcodebuild clean test -workspace ./DemoApp/REES46.xcworkspace -scheme REES46Demo \
83+
xcodebuild test -workspace ./DemoApp/REES46.xcworkspace -scheme REES46Demo \
10984
-sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \
11085
CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED='NO' CODE_SIGN_ENTITLEMENTS=''
11186

0 commit comments

Comments
 (0)