Skip to content

Commit bdf84c0

Browse files
authored
Archive testing on GHA (#6338)
* 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.
1 parent 07cd975 commit bdf84c0

16 files changed

+298
-0
lines changed

.github/workflows/abtesting.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,18 @@ jobs:
116116
run: |
117117
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
118118
FirebaseABTesting.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
119+
120+
archive-cron:
121+
# Don't run on private repo.
122+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
123+
124+
runs-on: macOS-latest
125+
strategy:
126+
matrix:
127+
target: [ios, tvos, macos]
128+
steps:
129+
- uses: actions/checkout@v2
130+
- name: Setup Bundler
131+
run: scripts/setup_bundler.sh
132+
- name: Setup project and archive
133+
run: scripts/test_archiving.sh FirebaseABTesting ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/appdistribution.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,18 @@ jobs:
4949
run: |
5050
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
5151
--platforms=${{ matrix.target }} ${{ matrix.flags }}
52+
53+
archive-cron:
54+
# Don't run on private repo.
55+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
56+
57+
runs-on: macOS-latest
58+
strategy:
59+
matrix:
60+
target: [ios]
61+
steps:
62+
- uses: actions/checkout@v2
63+
- name: Setup Bundler
64+
run: scripts/setup_bundler.sh
65+
- name: Setup project and archive
66+
run: scripts/test_archiving.sh FirebaseAppDistribution ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/auth.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,18 @@ jobs:
150150
run: |
151151
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
152152
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
153+
154+
archive-cron:
155+
# Don't run on private repo.
156+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
157+
158+
runs-on: macOS-latest
159+
strategy:
160+
matrix:
161+
target: [ios, tvos, macos]
162+
steps:
163+
- uses: actions/checkout@v2
164+
- name: Setup Bundler
165+
run: scripts/setup_bundler.sh
166+
- name: Setup project and archive
167+
run: scripts/test_archiving.sh FirebaseAuth ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/core.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,21 @@ jobs:
7171
- name: Setup project and Build Catalyst
7272
run: scripts/test_catalyst.sh FirebaseCore build
7373

74+
archive-cron:
75+
# Don't run on private repo.
76+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
77+
78+
runs-on: macOS-latest
79+
strategy:
80+
matrix:
81+
target: [ios, tvos, macos]
82+
steps:
83+
- uses: actions/checkout@v2
84+
- name: Setup Bundler
85+
run: scripts/setup_bundler.sh
86+
- name: Setup project and archive
87+
run: scripts/test_archiving.sh FirebaseCore ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive
88+
7489
core-cron-only:
7590
# Don't run on private repo.
7691
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'

.github/workflows/crashlytics.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,18 @@ jobs:
124124
run: |
125125
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
126126
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
127+
128+
archive-cron:
129+
# Don't run on private repo.
130+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
131+
132+
runs-on: macOS-latest
133+
strategy:
134+
matrix:
135+
target: [ios, tvos, macos]
136+
steps:
137+
- uses: actions/checkout@v2
138+
- name: Setup Bundler
139+
run: scripts/setup_bundler.sh
140+
- name: Setup project and archive
141+
run: scripts/test_archiving.sh FirebaseCrashlytics ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/database.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,18 @@ jobs:
138138
run: scripts/setup_bundler.sh
139139
- name: PodLibLint database Cron
140140
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseDatabase.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
141+
142+
archive-cron:
143+
# Don't run on private repo.
144+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
145+
146+
runs-on: macOS-latest
147+
strategy:
148+
matrix:
149+
target: [ios, tvos, macos]
150+
steps:
151+
- uses: actions/checkout@v2
152+
- name: Setup Bundler
153+
run: scripts/setup_bundler.sh
154+
- name: Setup project and archive
155+
run: scripts/test_archiving.sh FirebaseDatabase ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/datatransport.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,18 @@ jobs:
7676
- name: PodLibLint DataTransport Cron
7777
run: |
7878
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
79+
80+
archive-cron:
81+
# Don't run on private repo.
82+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
83+
84+
runs-on: macOS-latest
85+
strategy:
86+
matrix:
87+
target: [ios, tvos, macos]
88+
steps:
89+
- uses: actions/checkout@v2
90+
- name: Setup Bundler
91+
run: scripts/setup_bundler.sh
92+
- name: Setup project and archive
93+
run: scripts/test_archiving.sh GoogleDataTransport ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/dynamiclinks.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,19 @@ jobs:
8585
- name: Test swift quickstart
8686
if: ${{ always() }}
8787
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks swift)
88+
89+
archive-cron:
90+
# Don't run on private repo.
91+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
92+
93+
runs-on: macOS-latest
94+
strategy:
95+
matrix:
96+
target: [ios]
97+
steps:
98+
- uses: actions/checkout@v2
99+
- name: Setup Bundler
100+
run: scripts/setup_bundler.sh
101+
- name: Setup project and archive
102+
run: scripts/test_archiving.sh FirebaseDynamicLinks ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive
103+

.github/workflows/firestore.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,18 @@ jobs:
238238
- name: Test swift quickstart
239239
run: ([ -z $plist_secret ] ||
240240
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore)
241+
242+
archive-cron:
243+
# Don't run on private repo.
244+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
245+
246+
runs-on: macOS-latest
247+
strategy:
248+
matrix:
249+
target: [ios, tvos, macos]
250+
steps:
251+
- uses: actions/checkout@v2
252+
- name: Setup Bundler
253+
run: scripts/setup_bundler.sh
254+
- name: Setup project and archive
255+
run: scripts/test_archiving.sh FirebaseFirestore ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/functions.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,18 @@ jobs:
7171
- name: Test swift quickstart
7272
run: ([ -z $plist_secret ] ||
7373
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions swift)
74+
75+
archive-cron:
76+
# Don't run on private repo.
77+
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
78+
79+
runs-on: macOS-latest
80+
strategy:
81+
matrix:
82+
target: [ios, tvos, macos]
83+
steps:
84+
- uses: actions/checkout@v2
85+
- name: Setup Bundler
86+
run: scripts/setup_bundler.sh
87+
- name: Setup project and archive
88+
run: scripts/test_archiving.sh FirebaseFunctions ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

0 commit comments

Comments
 (0)