Skip to content

Commit e02ea51

Browse files
committed
more workflows
1 parent 4358d3d commit e02ea51

File tree

5 files changed

+339
-536
lines changed

5 files changed

+339
-536
lines changed

.github/workflows/abtesting.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ jobs:
5555
# retry_wait_seconds: 120
5656
# command: scripts/pod_lib_lint.rb FirebaseABTesting.podspec --platforms=${{ matrix.target }}
5757

58-
spm:
59-
uses: ./.github/workflows/common.yml
60-
with:
61-
target: ABTestingUnit
58+
# spm:
59+
# uses: ./.github/workflows/common.yml
60+
# with:
61+
# target: ABTestingUnit
6262

6363
# catalyst:
6464
# # Don't run on private repo unless it is a PR.

.github/workflows/core.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ jobs:
6767
# path: .build
6868
# key: ${{ steps.generate_cache_key.outputs.cache_key }}
6969

70-
spm:
71-
uses: ./.github/workflows/common.yml
72-
with:
73-
target: CoreUnit
70+
# spm:
71+
# uses: ./.github/workflows/common.yml
72+
# with:
73+
# target: CoreUnit
7474

7575
# catalyst:
7676
# # Don't run on private repo unless it is a PR.

.github/workflows/core_internal.yml

Lines changed: 70 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -13,141 +13,76 @@ on:
1313
- cron: '0 10 * * *'
1414

1515
jobs:
16-
pod-lib-lint:
17-
# Don't run on private repo unless it is a PR.
18-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
19-
strategy:
20-
matrix:
21-
target: [ios, tvos, macos, watchos]
22-
build-env:
23-
- os: macos-14
24-
xcode: Xcode_16.2
25-
swift_version: 5.9
26-
- os: macos-15
27-
xcode: Xcode_16.2
28-
swift_version: 5.9
29-
- os: macos-15
30-
xcode: Xcode_16.2
31-
swift_version: 6.0
32-
runs-on: ${{ matrix.build-env.os }}
33-
steps:
34-
- uses: actions/checkout@v4
35-
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
36-
- name: Setup Bundler
37-
run: scripts/setup_bundler.sh
38-
- name: Xcode
39-
run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
40-
- name: Set Swift swift_version
41-
run: sed -i "" "s/s.swift_version[[:space:]]*=[[:space:]]*'5.9'/s.swift_version = '${{ matrix.build-env.swift_version }}'/" FirebaseCoreInternal.podspec
42-
- name: Build and test
43-
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }}
44-
45-
spm-package-resolved:
46-
env:
47-
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
48-
runs-on: macos-14
49-
outputs:
50-
cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
51-
steps:
52-
- uses: actions/checkout@v4
53-
- name: Xcode
54-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
55-
- name: Generate Swift Package.resolved
56-
id: swift_package_resolve
57-
run: |
58-
swift package resolve
59-
- name: Generate cache key
60-
id: generate_cache_key
61-
run: |
62-
cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
63-
echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
64-
- uses: actions/cache/save@v4
65-
id: cache
66-
with:
67-
path: .build
68-
key: ${{ steps.generate_cache_key.outputs.cache_key }}
16+
# pod-lib-lint:
17+
# # Don't run on private repo unless it is a PR.
18+
# if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
19+
# strategy:
20+
# matrix:
21+
# target: [ios, tvos, macos, watchos]
22+
# build-env:
23+
# - os: macos-14
24+
# xcode: Xcode_16.2
25+
# swift_version: 5.9
26+
# - os: macos-15
27+
# xcode: Xcode_16.2
28+
# swift_version: 5.9
29+
# - os: macos-15
30+
# xcode: Xcode_16.2
31+
# swift_version: 6.0
32+
# runs-on: ${{ matrix.build-env.os }}
33+
# steps:
34+
# - uses: actions/checkout@v4
35+
# - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
36+
# - name: Setup Bundler
37+
# run: scripts/setup_bundler.sh
38+
# - name: Xcode
39+
# run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
40+
# - name: Set Swift swift_version
41+
# run: sed -i "" "s/s.swift_version[[:space:]]*=[[:space:]]*'5.9'/s.swift_version = '${{ matrix.build-env.swift_version }}'/" FirebaseCoreInternal.podspec
42+
# - name: Build and test
43+
# run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }}
6944

7045
spm:
71-
# Don't run on private repo unless it is a PR.
72-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
73-
needs: [spm-package-resolved]
74-
strategy:
75-
matrix:
76-
include:
77-
- os: macos-14
78-
xcode: Xcode_16.2
79-
target: iOS
80-
- os: macos-15
81-
xcode: Xcode_16.2
82-
target: iOS
83-
- os: macos-15
84-
xcode: Xcode_16.2
85-
target: tvOS
86-
- os: macos-15
87-
xcode: Xcode_16.2
88-
target: macOS
89-
- os: macos-15
90-
xcode: Xcode_16.2
91-
target: watchOS
92-
- os: macos-15
93-
xcode: Xcode_16.2
94-
target: catalyst
95-
- os: macos-15
96-
xcode: Xcode_16.2
97-
target: visionOS
98-
runs-on: ${{ matrix.os }}
99-
steps:
100-
- uses: actions/checkout@v4
101-
- uses: actions/cache/restore@v4
102-
with:
103-
path: .build
104-
key: ${{needs.spm-package-resolved.outputs.cache_key}}
105-
- name: Initialize xcodebuild
106-
run: scripts/setup_spm_tests.sh
107-
- name: Xcode
108-
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
109-
- name: Install visionOS, if needed.
110-
if: matrix.target == 'visionOS'
111-
run: xcodebuild -downloadPlatform visionOS
112-
- name: FirebaseCoreInternalTests
113-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCoreInternalTests ${{ matrix.target }} spm
114-
115-
catalyst:
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-
runs-on: macos-15
119-
steps:
120-
- uses: actions/checkout@v4
121-
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
122-
with:
123-
cache_key: catalyst${{ matrix.os }}
124-
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
125-
- name: Setup Bundler
126-
run: scripts/setup_bundler.sh
127-
- name: Xcode
128-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
129-
- name: Setup Catalyst project and run unit tests
130-
run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Unit
131-
- name: Setup Catalyst project and run integration tests
132-
run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Integration
46+
uses: ./.github/workflows/common.yml
47+
with:
48+
target: FirebaseCoreInternalTests
13349

134-
core-internal-cron-only:
135-
# Don't run on private repo.
136-
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
137-
runs-on: macos-15
138-
strategy:
139-
matrix:
140-
target: [ios, tvos, macos]
141-
flags: [
142-
'--use-static-frameworks'
143-
]
144-
needs: pod-lib-lint
145-
steps:
146-
- uses: actions/checkout@v4
147-
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
148-
- name: Xcode
149-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
150-
- name: Setup Bundler
151-
run: scripts/setup_bundler.sh
152-
- name: PodLibLint CoreInternal Cron
153-
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
50+
# catalyst:
51+
# # Don't run on private repo unless it is a PR.
52+
# if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
53+
# runs-on: macos-15
54+
# steps:
55+
# - uses: actions/checkout@v4
56+
# - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
57+
# with:
58+
# cache_key: catalyst${{ matrix.os }}
59+
# - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
60+
# - name: Setup Bundler
61+
# run: scripts/setup_bundler.sh
62+
# - name: Xcode
63+
# run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
64+
# - name: Setup Catalyst project and run unit tests
65+
# run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Unit
66+
# - name: Setup Catalyst project and run integration tests
67+
# run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Integration
68+
#
69+
# core-internal-cron-only:
70+
# # Don't run on private repo.
71+
# if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
72+
# runs-on: macos-15
73+
# strategy:
74+
# matrix:
75+
# target: [ios, tvos, macos]
76+
# flags: [
77+
# '--use-static-frameworks'
78+
# ]
79+
# needs: pod-lib-lint
80+
# steps:
81+
# - uses: actions/checkout@v4
82+
# - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
83+
# - name: Xcode
84+
# run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
85+
# - name: Setup Bundler
86+
# run: scripts/setup_bundler.sh
87+
# - name: PodLibLint CoreInternal Cron
88+
# run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

0 commit comments

Comments
 (0)