-
-
Notifications
You must be signed in to change notification settings - Fork 153
39 lines (39 loc) · 1.08 KB
/
build_and_test.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
name: Build and Test
on:
workflow_dispatch: {}
pull_request:
branches: [ main ]
paths:
- '.github/workflows/build_and_test.yml'
- 'Sources/**'
- '!Sources/Runestone/Documentation.docc/**'
- 'Tests/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app
jobs:
build:
name: Build and test on iPhone 15
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: |
xcodebuild build-for-testing\
-scheme Runestone\
-sdk iphonesimulator\
-destination 'platform=iOS Simulator,name=iPhone 15'
- name: Test
env:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
xcodebuild test-without-building\
-scheme Runestone\
-sdk iphonesimulator\
-destination 'platform=iOS Simulator,name=iPhone 15'