-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.38 KB
/
spm.yml
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
name: spm
on:
pull_request:
schedule:
# Run every day at 11pm (PST) - cron uses UTC times
- cron: '0 7 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
changed_today:
runs-on: ubuntu-latest
name: Check if the repo was updated today
outputs:
WAS_CHANGED: ${{ steps.check_changed.outputs.WAS_CHANGED }}
steps:
- uses: actions/checkout@v4
- id: check_changed
name: Check
if: ${{ github.event_name == 'schedule' }}
run: echo '::set-output name=WAS_CHANGED::'$(test -n "$(git log --format=%H --since='24 hours ago')" && echo 'true' || echo 'false')
spm:
needs: changed_today
if: ${{ github.event_name == 'pull_request' || needs.changed_today.outputs.WAS_CHANGED == 'true' }}
runs-on: macOS-latest
strategy:
matrix:
target: [iOS, tvOS, macOS, catalyst, visionOS]
xcode: [Xcode_15.2, Xcode_15.4, Xcode_16_beta_6]
steps:
- uses: actions/checkout@v4
- name: Xcode
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
- name: Setup Scripts Directory
run: ./setup-scripts.sh
- name: Initialize xcodebuild
run: xcodebuild -list
- name: iOS Unit Tests
run: scripts/third_party/travis/retry.sh scripts/build.sh FirebaseDataConnect ${{ matrix.target }} spm