Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to ResearchKit 3.1 #34

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#
# 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 and Test

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- main
pull_request:
workflow_dispatch:
workflow_call:

jobs:
create-xcframework-researchkit:
name: XCFramework
uses: StanfordBDHG/.github/.github/workflows/xcframework.yml@v2
strategy:
matrix:
framework: [ResearchKit, ResearchKitUI]
with:
workspaceFile: RKWorkspace.xcworkspace
xcFrameworkName: ${{ matrix.framework }}
scheme: ${{ matrix.framework }}
runsonlabels: '["macOS", "self-hosted"]'
sdk: '["iphoneos", "iphonesimulator", "xros", "xrsimulator"]'
create-xcframework-researchkit-active-tasks:
name: XCFramework (ResearchKitActiveTask)
uses: StanfordBDHG/.github/.github/workflows/xcframework.yml@v2
with:
workspaceFile: RKWorkspace.xcworkspace
xcFrameworkName: ResearchKitActiveTask
scheme: ResearchKitActiveTask
runsonlabels: '["macOS", "self-hosted"]'
sdk: '["iphoneos", "iphonesimulator"]'
commit-and-release-xcframeworks:
name: Commit and Release XCFrameworks
needs: [create-xcframework-researchkit, create-xcframework-researchkit-active-tasks]
uses: StanfordBDHG/.github/.github/workflows/xcframework-commit-and-release.yml@v2
with:
dryrun: true
outputpath: './Sources'
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
secrets:
token: ${{ secrets.CODECOV_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# This source file is part of the Stanford Biodesign Digital Health Group open-source organization
#
# SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#

name: Pull Request

on:
pull_request:
workflow_dispatch:

jobs:
swiftlint:
name: SwiftLint
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2
57 changes: 57 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#
# 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: Create XCFramework and Release

concurrency:
group: Release
cancel-in-progress: false

on:
workflow_dispatch:
inputs:
version:
description: 'The version number of the framework embedded in the XCArchives & XCFrameworks. This version number is also used for the release tag.'
type: string
required: true

jobs:
create-xcframework-researchkit:
name: XCFramework
uses: StanfordBDHG/.github/.github/workflows/xcframework.yml@v2
strategy:
matrix:
framework: [ResearchKit, ResearchKitUI]
with:
workspaceFile: RKWorkspace.xcworkspace
xcFrameworkName: ${{ matrix.framework }}
scheme: ${{ matrix.framework }}
version: ${{ inputs.version }}
configuration: Release
runsonlabels: '["macOS", "self-hosted"]'
sdk: '["iphoneos", "iphonesimulator", "xros", "xrsimulator"]'
create-xcframework-researchkit-active-tasks:
name: XCFramework (ResearchKitActiveTask)
uses: StanfordBDHG/.github/.github/workflows/xcframework.yml@v2
with:
workspaceFile: RKWorkspace.xcworkspace
xcFrameworkName: ResearchKitActiveTask
scheme: ResearchKitActiveTask
version: ${{ inputs.version }}
configuration: Release
runsonlabels: '["macOS", "self-hosted"]'
sdk: '["iphoneos", "iphonesimulator"]'
commit-and-release-xcframeworks:
name: Commit and Release XCFrameworks
needs: [create-xcframework-researchkit, create-xcframework-researchkit-active-tasks]
uses: StanfordBDHG/.github/.github/workflows/xcframework-commit-and-release.yml@v2
with:
outputpath: './Sources'
user: PaulsAutomationBot
secrets:
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ DerivedData

.DS_Store
*.pyc
.swiftpm

# Swift Package Manager
Package.resolved
*.xcodeproj
.swiftpm
.build
.xcodebuild
.derivedData
coverage.lcov
*.xcresult
2 changes: 0 additions & 2 deletions .lfsconfig

This file was deleted.

14 changes: 14 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# This source file is part of the Stanford Biodesign Digital Health Group open-source organization
#
# SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#

version: 1
builder:
configs:
- platform: ios
documentation_targets:
- ResearchKitSwiftUI
Loading