mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
* Testing generating archives on GHA
* Removed unnecessary quotes.
* Fix arguments again.
* Attempt to archive macOS and tvOS too
* Fix naming
* arg parsing
* Fix parentheses style.
* End case for bash script.
* Try Catalyst support, too.
* Try Catalyst support, too for real.
* Catalyst again
* Revert Catalyst build.
This was wrong (scheme should have been App-iOS) but then that failed
with a different error:
```
firebase-ios-sdk/gen/FirebaseCore/Target Support Files/nanopb/nanopb-prefix.pch:2:9: fatal error: 'UIKit/UIKit.h' file not found
^~~~~~~~~~~~~~~
1 error generated.
```
I'll revert it for now and address later.
* Add ALL THE SDKS
* Run on cron job only
* Removed Installations test.
* Remove uploading of archive, print size on disk
* Temporarily run Core on PRs for testing.
* Re-enable cron only for Core.
100 lines
3.8 KiB
YAML
100 lines
3.8 KiB
YAML
name: instanceid
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'FirebaseInstanceID**'
|
|
- 'Firebase/InstanceID/**'
|
|
- 'Example/InstanceID/**'
|
|
- '.github/workflows/instanceid.yml'
|
|
- 'Gemfile'
|
|
schedule:
|
|
# Run every day at 11pm (PST) - cron uses UTC times
|
|
- cron: '0 7 * * *'
|
|
|
|
jobs:
|
|
pod-lib-lint:
|
|
# Don't run on private repo unless it is a PR.
|
|
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
|
|
runs-on: macOS-latest
|
|
env:
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
strategy:
|
|
matrix:
|
|
target: [ios, tvos, macos]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: Install GoogleService-Info.plist
|
|
run: |
|
|
mkdir -p Example/InstanceID/Resources
|
|
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Installations/GoogleService-Info.plist.gpg \
|
|
Example/InstanceID/Resources/GoogleService-Info.plist "$plist_secret"
|
|
- name: Get boolean for secrets available
|
|
id: secrets
|
|
run: echo "::set-output name=val::$([[ -z $plist_secret ]] && echo "0" || echo "1")"
|
|
- name: Build and test
|
|
run: |
|
|
export FIR_IID_INTEGRATION_TESTS_REQUIRED=${{ steps.secrets.outputs.val }}
|
|
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInstanceID.podspec --platforms=${{ matrix.target }}
|
|
|
|
catalyst:
|
|
# Don't run on private repo unless it is a PR.
|
|
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: Setup project and Build for Catalyst
|
|
# Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
|
|
run: scripts/test_catalyst.sh FirebaseInstanceID build FirebaseInstanceID-Unit-unit
|
|
|
|
instanceid-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 }}
|
|
FIR_IID_INTEGRATION_TESTS_REQUIRED: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
strategy:
|
|
matrix:
|
|
target: [ios, tvos, macos]
|
|
flags: [
|
|
'--use-modular-headers',
|
|
'--use-libraries'
|
|
]
|
|
needs: pod-lib-lint
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: Install GoogleService-Info.plist
|
|
run: |
|
|
mkdir -p Example/InstanceID/Resources
|
|
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Installations/GoogleService-Info.plist.gpg \
|
|
Example/InstanceID/Resources/GoogleService-Info.plist "$plist_secret"
|
|
- name: Get boolean for secrets available
|
|
id: secrets
|
|
run: echo "::set-output name=val::$([[ -z $plist_secret ]] && echo "0" || echo "1")"
|
|
- name: PodLibLint InstanceID Cron
|
|
run: |
|
|
export FIR_IID_INTEGRATION_TESTS_REQUIRED=${{ steps.secrets.outputs.val }}
|
|
FIR_IID_INTEGRATION_TESTS_REQUIRED="$plist_secret" scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInstanceID.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
|
|
|
|
archive-cron:
|
|
# 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]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: Setup project and archive
|
|
run: scripts/test_archiving.sh FirebaseInstanceID ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive
|