forked from ResearchKit/ResearchKit
-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (61 loc) · 2.03 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
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
#
# This source file is part of the Stanford Biodesign Digital Health Group open-source organization
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
name: Build XCArchive
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
workflow_dispatch:
workflow_call:
inputs:
version:
description: 'The version number of the framework embedded in the XCArchives.'
type: string
required: true
jobs:
create-xcframework-and-release-workflow-researchkit:
uses: StanfordBDHG/.github/.github/workflows/xcframework.yml@v2
strategy:
matrix:
framework: [ResearchKit, ResearchKitUI]
with:
runsonlabels: '["macOS", "self-hosted"]'
workspaceFile: RKWorkspace.xcworkspace
xcFrameworkName: ${{ matrix.framework }}
scheme: ${{ matrix.framework }}
dryRun: true
version: ${{ inputs.version }}
configuration: Release
sdk: '["iphoneos", "iphonesimulator", "xros", "xrsimulator"]'
create-xcframework-and-release-workflow-researchkit-active-tasks:
uses: StanfordBDHG/.github/.github/workflows/xcframework.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
workspaceFile: RKWorkspace.xcworkspace
xcFrameworkName: ResearchKitActiveTask
scheme: ResearchKitActiveTask
dryRun: true
version: ${{ inputs.version }}
configuration: Release
sdk: '["iphoneos", "iphonesimulator"]'
ios:
name: Build and Test iOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
path: 'Tests/UITests'
scheme: TestApp
resultBundle: TestApp-iOS.xcresult
artifactname: TestApp-iOS.xcresult
uploadcoveragereport:
name: Upload Coverage Report
needs: [ios]
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: TestApp-iOS.xcresult