-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (46 loc) · 1.35 KB
/
Copy pathpractical_examples.yml
File metadata and controls
49 lines (46 loc) · 1.35 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
name: Test Practical Examples
on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
defaults:
run:
working-directory: Examples/Practical
jobs:
test:
name: "Test BoardApplication"
runs-on: macos-14
strategy:
matrix:
device:
- { name: "iPhone 15", os: "17.5" }
- { name: "iPhone 16", os: "18.2" }
defaults:
run:
working-directory: Examples/Practical/BoardApplication
shell: bash
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Cache SwiftPM
uses: actions/cache@v4
with:
path: SourcePackages
key: ${{ runner.os }}-spm-${{ hashFiles('*.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}
restore-keys: ${{ runner.os }}-spm-
- name: Install xcpretty
run: bundle install
working-directory: ./
- name: Build on ${{ matrix.device.name }} (iOS ${{ matrix.device.os }})
run: |
set -o pipefail && \
xcodebuild -scheme BoardApplication \
build -destination "platform=iOS Simulator,name=${{ matrix.device.name }},OS=${{ matrix.device.os }}" \
-clonedSourcePackagesDirPath SourcePackages \
| bundle exec xcpretty