-
Notifications
You must be signed in to change notification settings - Fork 7
65 lines (63 loc) · 1.93 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build and Test
on:
push:
pull_request:
schedule:
- cron: "42 10 * * 1"
jobs:
SwiftPackage:
runs-on: macos-latest
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1.2.1
with:
xcode-version: 14.2
- name: Checkout Repository
uses: actions/checkout@v2
- name: Build Swift Debug Package
run: swift build -c debug
- name: Build Swift Release Package
run: swift build -c release
iOS:
runs-on: macos-13
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1.2.1
with:
xcode-version: '15.0.1'
- name: Checkout Repository
uses: actions/checkout@v2
- name: Prerequisites
run: gem install xcpretty
- name: Build
run: set -o pipefail; xcodebuild -scheme UXKit-UIKit build | xcpretty --color
iOS-Swift-Package:
runs-on: macos-latest
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1.2.1
with:
xcode-version: 13.2
- name: Checkout Repository
uses: actions/checkout@v2
- name: Prerequisites
run: gem install xcpretty
- name: Drop xcproj
run: rm -rf *.xcodeproj
- name: Show destinations
run: xcodebuild -showdestinations -scheme UXKit
- name: Build
run: set -o pipefail; xcodebuild -scheme UXKit -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13 Pro" build | xcpretty --color
NeXTstep:
runs-on: macos-13
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1.2.1
with:
xcode-version: '15.0.1'
- name: Checkout Repository
uses: actions/checkout@v2
- name: Prerequisites
run: gem install xcpretty
- name: Build
run: set -o pipefail; xcodebuild -scheme UXKit-AppKit build | xcpretty --color