Skip to content

Commit dd653bf

Browse files
authored
Segmentation tvOS, macOS, and CI (#6947)
1 parent 3e35561 commit dd653bf

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

.github/workflows/segmentation.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: segmentation
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'FirebasesSegmentation**'
7+
- '.github/workflows/segmentation.yml'
8+
- 'Gemfile'
9+
schedule:
10+
# Run every day at 11pm (PST) - cron uses UTC times
11+
- cron: '0 7 * * *'
12+
13+
jobs:
14+
pod-lib-lint:
15+
# Don't run on private repo unless it is a PR.
16+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
17+
18+
runs-on: macOS-latest
19+
20+
strategy:
21+
matrix:
22+
target: [ios, tvos, macos]
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Setup Bundler
26+
run: scripts/setup_bundler.sh
27+
- name: Build and test
28+
run: |
29+
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.podspec --platforms=${{ matrix.target }}
30+
31+
catalyst:
32+
# Don't run on private repo unless it is a PR.
33+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
34+
35+
runs-on: macOS-latest
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Setup Bundler
39+
run: scripts/setup_bundler.sh
40+
- name: Setup project and Build for Catalyst
41+
run: scripts/test_catalyst.sh FirebaseSegmentation build FirebaseSegmentation-Unit-unit
42+
43+
segmentation-cron-only:
44+
# Don't run on private repo.
45+
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
46+
47+
runs-on: macos-latest
48+
strategy:
49+
matrix:
50+
target: [ios, tvos, macos]
51+
flags: [
52+
'--use-static-frameworks',
53+
'--use-libraries'
54+
]
55+
needs: pod-lib-lint
56+
steps:
57+
- uses: actions/checkout@v2
58+
- name: Setup Bundler
59+
run: scripts/setup_bundler.sh
60+
- name: PodLibLint Auth Cron
61+
run: |
62+
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
63+
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

FirebaseSegmentation.podspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Firebase Segmentation enables you to associate your custom application instance
1515
}
1616

1717
s.ios.deployment_target = '10.0'
18+
s.osx.deployment_target = '10.12'
19+
s.tvos.deployment_target = '10.0'
20+
1821
s.cocoapods_version = '>= 1.4.0'
1922
s.static_framework = true
2023
s.prefix_header_file = false

0 commit comments

Comments
 (0)