@@ -316,30 +316,69 @@ jobs:
316
316
--allow-warnings \
317
317
--no-analyze
318
318
319
- spm :
319
+ spm-source :
320
320
# Either a scheduled run from public repo, or a pull request with firestore changes.
321
321
if : |
322
322
(github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
323
323
(github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
324
324
runs-on : macos-12
325
325
needs : check
326
+ env :
327
+ FIREBASE_SOURCE_FIRESTORE : 1
326
328
steps :
327
329
- uses : actions/checkout@v3
328
330
- uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
329
331
with :
330
332
cache_key : ${{ matrix.os }}
331
333
- name : Initialize xcodebuild
332
334
run : scripts/setup_spm_tests.sh
333
- - name : iOS Build Test – Binary
335
+ - name : iOS Build Test
334
336
run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore iOS spmbuildonly
335
- - name : iOS Build Test – Source
337
+ - name : Swift Build
338
+ run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestoreSwift iOS spmbuildonly
339
+
340
+ spm-binary :
341
+ # Either a scheduled run from public repo, or a pull request with firestore changes.
342
+ if : |
343
+ (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
344
+ (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
345
+ runs-on : macos-12
346
+ needs : check
347
+ steps :
348
+ - uses : actions/checkout@v3
349
+ - uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
350
+ with :
351
+ cache_key : ${{ matrix.os }}
352
+ - name : Initialize xcodebuild
353
+ run : scripts/setup_spm_tests.sh
354
+ - name : iOS Build Test
336
355
run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore iOS spmbuildonly
337
- env :
338
- FIREBASE_SOURCE_FIRESTORE : 1
339
356
- name : Swift Build
340
357
run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestoreSwift iOS spmbuildonly
341
358
342
- spm-cron :
359
+ # TODO: Re-enable either in or after #11706.
360
+ # spm-source-cron:
361
+ # # Don't run on private repo.
362
+ # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
363
+ # runs-on: macos-12
364
+ # strategy:
365
+ # matrix:
366
+ # target: [tvOS, macOS, catalyst]
367
+ # env:
368
+ # FIREBASE_SOURCE_FIRESTORE: 1
369
+ # steps:
370
+ # - uses: actions/checkout@v3
371
+ # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
372
+ # with:
373
+ # cache_key: ${{ matrix.os }}
374
+ # - name: Initialize xcodebuild
375
+ # run: scripts/setup_spm_tests.sh
376
+ # - name: Build Test - Binary
377
+ # run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly
378
+ # - name: Swift Build
379
+ # run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestoreSwift ${{ matrix.target }} spmbuildonly
380
+
381
+ spm-binary-cron :
343
382
# Don't run on private repo.
344
383
if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
345
384
runs-on : macos-12
@@ -355,11 +394,6 @@ jobs:
355
394
run : scripts/setup_spm_tests.sh
356
395
- name : Build Test - Binary
357
396
run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly
358
- # TODO: Re-enable either in or after #11706.
359
- # - name: Build Test – Source
360
- # run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly
361
- # env:
362
- # FIREBASE_SOURCE_FIRESTORE: 1
363
397
- name : Swift Build
364
398
run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestoreSwift ${{ matrix.target }} spmbuildonly
365
399
@@ -369,7 +403,7 @@ jobs:
369
403
runs-on : ubuntu-latest
370
404
if : always()
371
405
name : Check all required Firestore tests results
372
- needs : [cmake, cmake-prod-db, xcodebuild, spm]
406
+ needs : [cmake, cmake-prod-db, xcodebuild, spm-source, spm-binary ]
373
407
steps :
374
408
- name : Check test matrix
375
409
if : needs.cmake.result == 'failure' || needs.cmake-prod-db.result == 'failure' || needs.xcodebuild.result == 'failure' || needs.spm.result == 'failure'
0 commit comments