|
|
@@ -33,6 +33,29 @@ jobs:
|
|
|
- name: Build and test
|
|
|
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }}
|
|
|
|
|
|
+ mlmodeldownloader-cron-only:
|
|
|
+ # Don't run on private repo.
|
|
|
+ if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
|
|
|
+
|
|
|
+ runs-on: macos-latest
|
|
|
+ env:
|
|
|
+ plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
+ strategy:
|
|
|
+ matrix:
|
|
|
+ target: [ios, tvos, macos]
|
|
|
+ needs: pod-lib-lint
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Setup Bundler
|
|
|
+ run: scripts/setup_bundler.sh
|
|
|
+ - name: Install GoogleService-Info.plist
|
|
|
+ run: |
|
|
|
+ mkdir FirebaseMLModelDownloader/Tests/Integration/Resources
|
|
|
+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
|
|
|
+ FirebaseMLModelDownloader/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
|
|
|
+ - name: PodLibLint MLModelDownloader Cron
|
|
|
+ run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }} --use-static-frameworks
|
|
|
+
|
|
|
spm:
|
|
|
# Don't run on private repo unless it is a PR.
|
|
|
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
|
|
|
@@ -73,22 +96,6 @@ jobs:
|
|
|
- name: Setup project and Build Catalyst
|
|
|
run: scripts/test_catalyst.sh FirebaseMLModelDownloader test FirebaseMLModelDownloader-Unit-unit
|
|
|
|
|
|
- mlmodeldownloader-cron-only:
|
|
|
- # Don't run on private repo.
|
|
|
- if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
|
|
|
-
|
|
|
- runs-on: macos-latest
|
|
|
- strategy:
|
|
|
- matrix:
|
|
|
- target: [ios, tvos, macos]
|
|
|
- needs: pod-lib-lint
|
|
|
- steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
- - name: Setup Bundler
|
|
|
- run: scripts/setup_bundler.sh
|
|
|
- - name: PodLibLint MLModelDownloader Cron
|
|
|
- run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }} --use-modular-headers
|
|
|
-
|
|
|
mlmodeldownloader-sample-build-test:
|
|
|
# Don't run on private repo unless it is a PR.
|
|
|
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
|