-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (32 loc) · 1.35 KB
/
swift.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
name: Swift
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-14
strategy:
matrix:
run-config:
- { scheme: 'Lindenmayer-Package', destination: 'platform=iOS Simulator,OS=15.5,name=iPhone 8' }
# Xcode on Github Actions supports at best up to macOS 11.6.2 currently...
- { scheme: 'Lindenmayer-Package', destination: 'platform=macOS,arch=x86_64' }
steps:
- uses: actions/checkout@v4
# default Xcode for macOS 14 image is v15.0.1
- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Show Build SDK
run: xcodebuild -showsdks
- name: List available schemes
run: xcodebuild -list
- name: Show Build Settings
run: xcodebuild -scheme '${{ matrix.run-config['scheme'] }}' -showBuildSettings
- name: Show Available Destinations
run: xcodebuild -scheme '${{ matrix.run-config['scheme'] }}' -showdestinations
- name: Build and Test
run: xcodebuild clean test -scheme '${{ matrix.run-config['scheme'] }}' -destination '${{ matrix.run-config['destination'] }}' -showBuildTimingSummary
# - name: DocBuild
# run: xcodebuild docbuild -scheme '${{ matrix.run-config['scheme'] }}' -destination '${{ matrix.run-config['destination'] }}' -derivedDataPath /tmp/docbuild