-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (25 loc) · 951 Bytes
/
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
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Carthage
run: brew install carthage
- name: Bootstrap Carthage
run: carthage bootstrap --platform iOS
- name: Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build
run: xcodebuild build -project SwiftVN.xcodeproj -scheme SwiftVN clean build -sdk iphoneos CODE_SIGNING_ALLOWED=No
- name: Run tests
run: xcodebuild test -project SwiftVN.xcodeproj -scheme SwiftVN clean build -sdk iphoneos -destination "platform=iOS Simulator,OS=17.0,name=iPhone 15" CODE_SIGNING_ALLOWED=No