From 786c5a264e48dd81e68d7de44c89260faf985862 Mon Sep 17 00:00:00 2001 From: Nick Cooke <36927374+ncooke3@users.noreply.github.com> Date: Fri, 15 Sep 2023 13:29:31 -0400 Subject: [PATCH] Break up SPM cron steps into jobs --- .github/workflows/firestore.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/firestore.yml b/.github/workflows/firestore.yml index 78951c1ed9c..a1b38e51a42 100644 --- a/.github/workflows/firestore.yml +++ b/.github/workflows/firestore.yml @@ -356,13 +356,16 @@ jobs: - name: Swift Build run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestoreSwift iOS spmbuildonly - # spm-cron: + # TODO: Re-enable either in or after #11706. + # spm-source-cron: # # Don't run on private repo. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk' # runs-on: macos-12 # strategy: # matrix: # target: [tvOS, macOS, catalyst] + # env: + # FIREBASE_SOURCE_FIRESTORE: 1 # steps: # - uses: actions/checkout@v3 # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126 @@ -372,14 +375,28 @@ jobs: # run: scripts/setup_spm_tests.sh # - name: Build Test - Binary # run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly - # # TODO: Re-enable either in or after #11706. - # # - name: Build Test – Source - # # run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly - # # env: - # # FIREBASE_SOURCE_FIRESTORE: 1 # - name: Swift Build # run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestoreSwift ${{ matrix.target }} spmbuildonly +spm-binary-cron: + # Don't run on private repo. + if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk' + runs-on: macos-12 + strategy: + matrix: + target: [tvOS, macOS, catalyst] + steps: + - uses: actions/checkout@v3 + - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126 + with: + cache_key: ${{ matrix.os }} + - name: Initialize xcodebuild + run: scripts/setup_spm_tests.sh + - name: Build Test - Binary + run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly + - name: Swift Build + run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestoreSwift ${{ matrix.target }} spmbuildonly + # # A job that fails if any required job in the test matrix fails, # # to be used as a required check for merging. # check-required-tests: