Skip to content

Commit 049873d

Browse files
committed
more workflows
1 parent c5c4250 commit 049873d

File tree

4 files changed

+31
-246
lines changed

4 files changed

+31
-246
lines changed

.github/workflows/dynamiclinks.yml

Lines changed: 10 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
jobs:
20+
spm:
21+
strategy:
22+
matrix:
23+
target: [FirebaseAppCheckUnit, FirebaseAppCheckUnitSwift]
24+
uses: ./.github/workflows/common.yml
25+
with:
26+
target: FirebaseDynamicLinks
27+
buildonly_platforms: iOS
28+
platforms: iOS
29+
2030
pod_lib_lint:
2131
# Don't run on private repo unless it is a PR.
2232
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
@@ -39,56 +49,6 @@ jobs:
3949
- name: FirebaseDynamicLinks
4050
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseDynamicLinks.podspec --allow-warnings
4151

42-
spm-package-resolved:
43-
env:
44-
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
45-
runs-on: macos-14
46-
outputs:
47-
cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
48-
steps:
49-
- uses: actions/checkout@v4
50-
- name: Xcode
51-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
52-
- name: Generate Swift Package.resolved
53-
id: swift_package_resolve
54-
run: |
55-
swift package resolve
56-
- name: Generate cache key
57-
id: generate_cache_key
58-
run: |
59-
cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
60-
echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
61-
- uses: actions/cache/save@v4
62-
id: cache
63-
with:
64-
path: .build
65-
key: ${{ steps.generate_cache_key.outputs.cache_key }}
66-
67-
spm:
68-
# Don't run on private repo unless it is a PR.
69-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
70-
needs: [spm-package-resolved]
71-
strategy:
72-
matrix:
73-
include:
74-
- os: macos-14
75-
xcode: Xcode_16.2
76-
- os: macos-15
77-
xcode: Xcode_16.2
78-
runs-on: ${{ matrix.os }}
79-
steps:
80-
- uses: actions/checkout@v4
81-
- uses: actions/cache/restore@v4
82-
with:
83-
path: .build
84-
key: ${{needs.spm-package-resolved.outputs.cache_key}}
85-
- name: Xcode
86-
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
87-
- name: Initialize xcodebuild
88-
run: scripts/setup_spm_tests.sh
89-
- name: iOS Unit Tests
90-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseDynamicLinks iOS spmbuildonly
91-
9252
dynamiclinks-cron-only:
9353
# Don't run on private repo.
9454
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'

.github/workflows/inappmessaging.yml

Lines changed: 6 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
jobs:
20+
spm:
21+
uses: ./.github/workflows/common.yml
22+
with:
23+
target: FirebaseInAppMessaging-Beta
24+
platforms: iOS
25+
buildonly_platforms: iOS
2026

2127
pod_lib_lint:
2228
# Don't run on private repo unless it is a PR.
@@ -68,56 +74,6 @@ jobs:
6874
- name: Build and test
6975
run: scripts/third_party/travis/retry.sh scripts/build.sh InAppMessaging ${{ matrix.platform }} xcodebuild
7076

71-
spm-package-resolved:
72-
env:
73-
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
74-
runs-on: macos-14
75-
outputs:
76-
cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
77-
steps:
78-
- uses: actions/checkout@v4
79-
- name: Xcode
80-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
81-
- name: Generate Swift Package.resolved
82-
id: swift_package_resolve
83-
run: |
84-
swift package resolve
85-
- name: Generate cache key
86-
id: generate_cache_key
87-
run: |
88-
cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
89-
echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
90-
- uses: actions/cache/save@v4
91-
id: cache
92-
with:
93-
path: .build
94-
key: ${{ steps.generate_cache_key.outputs.cache_key }}
95-
96-
spm:
97-
# Don't run on private repo unless it is a PR.
98-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
99-
needs: [spm-package-resolved]
100-
strategy:
101-
matrix:
102-
include:
103-
- os: macos-14
104-
xcode: Xcode_16.2
105-
- os: macos-15
106-
xcode: Xcode_16.2
107-
runs-on: ${{ matrix.os }}
108-
steps:
109-
- uses: actions/checkout@v4
110-
- uses: actions/cache/restore@v4
111-
with:
112-
path: .build
113-
key: ${{needs.spm-package-resolved.outputs.cache_key}}
114-
- name: Xcode
115-
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
116-
- name: Initialize xcodebuild
117-
run: scripts/setup_spm_tests.sh
118-
- name: iOS Unit Tests
119-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseInAppMessaging-Beta iOS spmbuildonly
120-
12177
fiam-cron-only:
12278
# Don't run on private repo.
12379
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'

.github/workflows/messaging.yml

Lines changed: 5 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ concurrency:
2323
cancel-in-progress: true
2424

2525
jobs:
26+
spm:
27+
uses: ./.github/workflows/common.yml
28+
with:
29+
target: MessagingUnit
30+
buildonly_platforms: tvOS, macOS, watchOS, catalyst, visionOS
2631

2732
# TODO(#12205) Update the build.sh script for this job from "test" instead of "build"
2833
messaging-integration-tests:
@@ -78,73 +83,6 @@ jobs:
7883
- name: Build and test
7984
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} ${{ matrix.build-env.tests }} --platforms=${{ matrix.target }}
8085

81-
spm-package-resolved:
82-
env:
83-
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
84-
runs-on: macos-14
85-
outputs:
86-
cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
87-
steps:
88-
- uses: actions/checkout@v4
89-
- name: Xcode
90-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
91-
- name: Generate Swift Package.resolved
92-
id: swift_package_resolve
93-
run: |
94-
swift package resolve
95-
- name: Generate cache key
96-
id: generate_cache_key
97-
run: |
98-
cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
99-
echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
100-
- uses: actions/cache/save@v4
101-
id: cache
102-
with:
103-
path: .build
104-
key: ${{ steps.generate_cache_key.outputs.cache_key }}
105-
106-
spm:
107-
# Don't run on private repo unless it is a PR.
108-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
109-
needs: [spm-package-resolved]
110-
strategy:
111-
matrix:
112-
include:
113-
- os: macos-14
114-
xcode: Xcode_16.2
115-
target: iOS spmbuildonly
116-
- os: macos-15
117-
xcode: Xcode_16.2
118-
target: iOS spm
119-
- os: macos-15
120-
xcode: Xcode_16.2
121-
target: tvOS spmbuildonly
122-
- os: macos-15
123-
xcode: Xcode_16.2
124-
target: macOS spmbuildonly
125-
- os: macos-15
126-
xcode: Xcode_16.2
127-
target: watchOS spmbuildonly
128-
- os: macos-15
129-
xcode: Xcode_16.2
130-
target: catalyst spmbuildonly
131-
- os: macos-15
132-
xcode: Xcode_16.2
133-
target: visionOS spmbuildonly
134-
runs-on: ${{ matrix.os }}
135-
steps:
136-
- uses: actions/checkout@v4
137-
- uses: actions/cache/restore@v4
138-
with:
139-
path: .build
140-
key: ${{needs.spm-package-resolved.outputs.cache_key}}
141-
- name: Initialize xcodebuild
142-
run: scripts/setup_spm_tests.sh
143-
- name: Xcode
144-
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
145-
- name: Unit Tests
146-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh MessagingUnit ${{ matrix.target }}
147-
14886
catalyst:
14987
# Don't run on private repo unless it is a PR.
15088
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'

.github/workflows/remoteconfig.yml

Lines changed: 10 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
jobs:
22+
spm_1:
23+
uses: ./.github/workflows/common.yml
24+
with:
25+
target: RemoteConfigUnit
26+
27+
spm_2:
28+
uses: ./.github/workflows/common.yml
29+
with:
30+
target: RemoteConfigFakeConsole
31+
buildonly_platforms: watchOS
2232

2333
remoteconfig:
2434
# Don't run on private repo unless it is a PR.
@@ -87,85 +97,6 @@ jobs:
8797
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} \
8898
${{ matrix.build-env.tests }}
8999
90-
spm-package-resolved:
91-
env:
92-
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
93-
runs-on: macos-14
94-
outputs:
95-
cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
96-
steps:
97-
- uses: actions/checkout@v4
98-
- name: Xcode
99-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
100-
- name: Generate Swift Package.resolved
101-
id: swift_package_resolve
102-
run: |
103-
swift package resolve
104-
- name: Generate cache key
105-
id: generate_cache_key
106-
run: |
107-
cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
108-
echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
109-
- uses: actions/cache/save@v4
110-
id: cache
111-
with:
112-
path: .build
113-
key: ${{ steps.generate_cache_key.outputs.cache_key }}
114-
115-
spm:
116-
# Don't run on private repo unless it is a PR.
117-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
118-
needs: [spm-package-resolved]
119-
strategy:
120-
matrix:
121-
include:
122-
- os: macos-14
123-
xcode: Xcode_16.2
124-
target: iOS
125-
test: spm
126-
- os: macos-15
127-
xcode: Xcode_16.2
128-
target: iOS
129-
test: spm
130-
- os: macos-15
131-
xcode: Xcode_16.2
132-
target: tvOS
133-
test: spm
134-
- os: macos-15
135-
xcode: Xcode_16.2
136-
target: macOS
137-
test: spm
138-
- os: macos-15
139-
xcode: Xcode_16.2
140-
target: watchOS
141-
test: spmbuildonly
142-
- os: macos-15
143-
xcode: Xcode_16.2
144-
target: catalyst
145-
test: spm
146-
- os: macos-15
147-
xcode: Xcode_16.2
148-
target: visionOS
149-
test: spm
150-
runs-on: ${{ matrix.os }}
151-
steps:
152-
- uses: actions/checkout@v4
153-
- uses: actions/cache/restore@v4
154-
with:
155-
path: .build
156-
key: ${{needs.spm-package-resolved.outputs.cache_key}}
157-
- name: Xcode
158-
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
159-
- name: Install visionOS, if needed.
160-
if: matrix.target == 'visionOS'
161-
run: xcodebuild -downloadPlatform visionOS
162-
- name: Initialize xcodebuild
163-
run: scripts/setup_spm_tests.sh
164-
- name: Unit Tests
165-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh RemoteConfigUnit ${{ matrix.target }} spm
166-
- name: Fake Console tests
167-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh RemoteConfigFakeConsole ${{ matrix.target }} ${{ matrix.test }}
168-
169100
catalyst:
170101
# Don't run on private repo unless it is a PR.
171102
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'

0 commit comments

Comments
 (0)