Skip to content

Commit 9eb5f93

Browse files
committed
fixes
1 parent 51cd7e5 commit 9eb5f93

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/spm.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ jobs:
9595
xcode: Xcode_15.2
9696
- os: macos-14
9797
xcode: Xcode_15.3
98-
- os: macos-14
99-
target: visionOS
100-
xcode: Xcode_15.3
10198
runs-on: ${{ matrix.os }}
10299
steps:
103100
- uses: actions/checkout@v4
@@ -116,3 +113,33 @@ jobs:
116113
run: scripts/third_party/travis/retry.sh ./scripts/build.sh version-test ${{ matrix.target }} spm
117114
- name: Analytics Build Tests
118115
run: scripts/third_party/travis/retry.sh ./scripts/build.sh analytics-import-test ${{ matrix.target }} spm
116+
117+
visionOS-with-Firestore-source:
118+
# Don't run on private repo unless it is a PR.
119+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
120+
121+
strategy:
122+
matrix:
123+
target: [visionOS]
124+
os: [macos-14]
125+
xcode: [Xcode_15.3]
126+
runs-on: ${{ matrix.os }}
127+
env:
128+
FIREBASE_SOURCE_FIRESTORE: 1
129+
steps:
130+
- uses: actions/checkout@v4
131+
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
132+
with:
133+
cache_key: platforms${{ matrix.os }}-${{ matrix.xcode }}-${{ matrix.target }}
134+
- name: Xcode
135+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
136+
- name: Initialize xcodebuild
137+
run: scripts/setup_spm_tests.sh
138+
- name: Objc Import Tests
139+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh objc-import-test ${{ matrix.target }} spm
140+
- name: Swift Tests
141+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh swift-test ${{ matrix.target }} spm
142+
- name: Version Tests
143+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh version-test ${{ matrix.target }} spm
144+
- name: Analytics Build Tests
145+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh analytics-import-test ${{ matrix.target }} spm

scripts/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,16 @@ case "$product-$platform-$method" in
411411
fi
412412
;;
413413

414+
# TODO: This is actually building for iOS instead of watchOS. Update to use
415+
# watchOS xcb_flags along with the watchOS sdk option. Also nanopb and promises
416+
# podspecs need minimum version updates.
417+
414418
MessagingSampleStandaloneWatchApp-*-*)
415419
if check_secrets; then
416420
RunXcodebuild \
417421
-workspace 'FirebaseMessaging/Apps/SampleStandaloneWatchApp/SampleStandaloneWatchApp.xcworkspace' \
418422
-scheme "SampleStandaloneWatchApp Watch App" \
419-
"${xcb_flags[@]}" \
423+
-destination 'platform=watchOS Simulator,name=Apple Watch Series 7 (45mm)' \
420424
build
421425
fi
422426
;;

0 commit comments

Comments
 (0)