1
1
name : mlmodeldownloader
2
2
3
+ permissions :
4
+ contents : read
5
+
3
6
on :
4
7
workflow_dispatch :
5
8
pull_request :
6
9
paths :
7
10
- ' FirebaseMLModelDownloader**'
8
11
- ' .github/workflows/mlmodeldownloader.yml'
12
+ - ' .github/workflows/common.yml'
13
+ - ' .github/workflows/common_cocoapods.yml'
9
14
- ' Gemfile*'
10
15
schedule :
11
16
# Run every day at 11pm (PST) - cron uses UTC times
@@ -27,35 +32,16 @@ jobs:
27
32
product : FirebaseMLModelDownloader
28
33
target : FirebaseMLModelDownloader-Unit-unit
29
34
30
- pod-lib-lint :
31
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
32
- env :
33
- plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
34
- strategy :
35
- matrix :
36
- target : [ios, tvos, macos, watchos]
37
- build-env :
38
- - os : macos-14
39
- xcode : Xcode_16.2
40
- - os : macos-15
41
- xcode : Xcode_16.2
42
- runs-on : ${{ matrix.build-env.os }}
43
- steps :
44
- - uses : actions/checkout@v4
45
- - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
46
- - name : Setup Bundler
47
- run : scripts/setup_bundler.sh
48
- - name : Configure test keychain
49
- run : scripts/configure_test_keychain.sh
50
- - name : Install GoogleService-Info.plist
51
- run : |
35
+ pod_lib_lint :
36
+ uses : ./.github/workflows/common_cocoapods.yml
37
+ with :
38
+ product : FirebaseMLModelDownloader
39
+ setup_command : |
52
40
mkdir FirebaseMLModelDownloader/Tests/Integration/Resources
53
41
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
54
42
FirebaseMLModelDownloader/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
55
- - name : Xcode
56
- run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
57
- - name : Build and test
58
- run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }})
43
+ secrets :
44
+ plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
59
45
60
46
mlmodeldownloader-cron-only :
61
47
if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
65
51
strategy :
66
52
matrix :
67
53
target : [ios, tvos, macos]
68
- needs : pod-lib-lint
54
+ needs : pod_lib_lint
69
55
steps :
70
56
- uses : actions/checkout@v4
71
57
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
0 commit comments