-
-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (34 loc) · 970 Bytes
/
spm-ios.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
# GitHub Actions Virtual Environments
# https://github.com/actions/virtual-environments/
name: SwiftPM Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
DEVELOPER_DIR: /Applications/Xcode_16.0.app/Contents/Developer
IOS_DEST: "platform=iOS Simulator,name=iPhone 16,OS=latest"
SCHEME: ReactiveCollectionsKit
jobs:
main:
name: SwiftPM Build
runs-on: macos-14
steps:
- name: git checkout
uses: actions/checkout@v4
- name: xcode version
run: xcodebuild -version -sdk
- name: list simulators
run: |
xcrun simctl delete unavailable
xcrun simctl list
# delete Xcode project to force using Package.swift
- name: delete xcodeproj
run: rm -rf ReactiveCollectionsKit.xcodeproj
- name: Build
run: |
set -o pipefail
xcodebuild build -scheme "$SCHEME" -destination "$IOS_DEST" | xcpretty -c