-
Notifications
You must be signed in to change notification settings - Fork 2
86 lines (86 loc) · 2.93 KB
/
samples-builds.yml
File metadata and controls
86 lines (86 loc) · 2.93 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
79
80
81
82
83
84
85
86
name: Samples Builds
on:
pull_request:
branches:
- main
- "release/**"
push:
branches:
- main
- "release/**"
schedule:
- cron: "0 0 * * SUN"
timezone: "America/Los_Angeles"
workflow_dispatch:
permissions:
contents: read
jobs:
macos-15:
name: macos-15 / Xcode ${{ matrix.xcode-version }} / ${{ matrix.configuration }}
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode-version }}.app
steps:
- name: Run checkout
uses: actions/checkout@v6
- name: Run builds
run: |
swift --version
swift build --package-path Samples/AnimalsData --configuration ${{ matrix.configuration }}
swift build --package-path Samples/AnimalsUI --configuration ${{ matrix.configuration }}
swift build --package-path Samples/CounterData --configuration ${{ matrix.configuration }}
swift build --package-path Samples/CounterUI --configuration ${{ matrix.configuration }}
swift build --package-path Samples/QuakesData --configuration ${{ matrix.configuration }}
swift build --package-path Samples/QuakesUI --configuration ${{ matrix.configuration }}
swift build --package-path Samples/Services --configuration ${{ matrix.configuration }}
strategy:
matrix:
xcode-version:
# - "16.0"
# - "16.1"
# - "16.2"
- "16.3"
- "16.4"
# - "26.0"
# - "26.1"
# - "26.2"
configuration:
- debug
- release
fail-fast: false
macos-26:
name: macos-26 / Xcode ${{ matrix.xcode-version }} / ${{ matrix.configuration }}
runs-on: macos-26
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode-version }}.app
steps:
- name: Run checkout
uses: actions/checkout@v6
- name: Run builds
run: |
swift --version
swift build --package-path Samples/AnimalsData --configuration ${{ matrix.configuration }}
swift build --package-path Samples/AnimalsUI --configuration ${{ matrix.configuration }}
swift build --package-path Samples/CounterData --configuration ${{ matrix.configuration }}
swift build --package-path Samples/CounterUI --configuration ${{ matrix.configuration }}
swift build --package-path Samples/QuakesData --configuration ${{ matrix.configuration }}
swift build --package-path Samples/QuakesUI --configuration ${{ matrix.configuration }}
swift build --package-path Samples/Services --configuration ${{ matrix.configuration }}
strategy:
matrix:
xcode-version:
# - "16.0"
# - "16.1"
# - "16.2"
# - "16.3"
# - "16.4"
- "26.0"
- "26.1"
- "26.2"
- "26.3"
- "26.4"
- "26.5"
configuration:
- debug
- release
fail-fast: false