-
Notifications
You must be signed in to change notification settings - Fork 1.8k
78 lines (70 loc) · 2.74 KB
/
Copy pathsdk.mlmodeldownloader.yml
File metadata and controls
78 lines (70 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: sdk.mlmodeldownloader
permissions:
contents: read
on:
workflow_dispatch:
pull_request:
paths:
- 'FirebaseMLModelDownloader**'
- '.github/workflows/sdk.mlmodeldownloader.yml'
- '.github/workflows/_spm.yml'
- '.github/workflows/_cocoapods.yml'
- '.github/workflows/_catalyst.yml'
- '.github/workflows/_cocoapods.cron.yml'
- 'Gemfile*'
schedule:
# Run every day at 12am (PDT) / 3am (EDT) - cron uses UTC times
- cron: '0 7 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
spm:
uses: ./.github/workflows/_spm.yml
with:
target: FirebaseMLModelDownloaderUnit
catalyst:
uses: ./.github/workflows/_catalyst.yml
with:
product: FirebaseMLModelDownloader
target: FirebaseMLModelDownloader-Unit-unit
pod_lib_lint:
if: github.event.pull_request.head.repo.fork == false
uses: ./.github/workflows/_cocoapods.yml
with:
product: FirebaseMLModelDownloader
setup_command: |
mkdir FirebaseMLModelDownloader/Tests/Integration/Resources
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
FirebaseMLModelDownloader/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
secrets:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
mlmodeldownloader-cron-only:
if: github.event.pull_request.head.repo.fork == false
needs: pod_lib_lint
uses: ./.github/workflows/_cocoapods.cron.yml
with:
product: FirebaseMLModelDownloader
platforms: '[ "ios", "tvos", "macos" ]'
flags: '[ "--use-static-frameworks" ]'
setup_command: |
scripts/configure_test_keychain.sh
mkdir FirebaseMLModelDownloader/Tests/Integration/Resources
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
FirebaseMLModelDownloader/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
secrets:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
mlmodeldownloader-sample-build-test:
if: github.event.pull_request.head.repo.fork == false
uses: ./.github/workflows/_build.yml
with:
product: MLModelDownloaderSample
platform: iOS
method: xcodebuild
setup_command: |
mkdir -p FirebaseMLModelDownloader/Apps/Sample/Resources
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
FirebaseMLModelDownloader/Apps/Sample/Resources/GoogleService-Info.plist "$plist_secret"
scripts/install_prereqs.sh MLModelDownloaderSample iOS
secrets:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}