-
Notifications
You must be signed in to change notification settings - Fork 227
41 lines (38 loc) · 1.11 KB
/
xcodebuild.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
name: Build and test
on:
pull_request:
paths:
- Vienna*/**
- External/**
- Scripts/**
- Makefile
- .github/workflows/*
jobs:
test:
strategy:
matrix:
include:
- os: macos-14
xcode: Xcode 15
developer-dir: /Applications/Xcode_15.4.app/Contents/Developer
- os: macos-14
xcode: Xcode 16
developer-dir: /Applications/Xcode_16.app/Contents/Developer
name: Test with ${{ matrix.xcode }}
runs-on: ${{ matrix.os }}
env:
DEVELOPER_DIR: ${{ matrix.developer-dir }}
timeout-minutes: 15
steps:
- name: Set up Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Vienna
run: |
xcodebuild -version
xcodebuild build-for-testing -project Vienna.xcodeproj -scheme Vienna -configuration Development | xcpretty && exit ${PIPESTATUS[0]}
- name: Run unit tests
run: |
xcodebuild -version
xcodebuild test -project Vienna.xcodeproj -scheme Vienna -configuration Development | xcpretty && exit ${PIPESTATUS[0]}