Skip to content

Commit

Permalink
Support visionOS, watchOS, and macOS Builds (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer authored Jul 30, 2023
1 parent c38e683 commit 0747436
Show file tree
Hide file tree
Showing 33 changed files with 175 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/cardinalkit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/healthkitonfhir.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/ideas.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/researchkitonfhir.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/show-and-tell.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/internal_change.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/major_feature.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/minor_feature.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
This source file is part of the Stanford Biodesign for Digital Health open-source project
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)
Expand Down
2 changes: 1 addition & 1 deletion .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/action-release-tag.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-and-upload-coverage-report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
27 changes: 21 additions & 6 deletions .github/workflows/xcodebuild-or-fastlane.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down Expand Up @@ -31,6 +31,16 @@ on:
required: false
type: string
default: ''
destination:
description: 'The destination parameter that should be passed to xcodebuild. Defaults to the iOS simulator using an iPhone 14 Pro'
required: false
type: string
default: 'platform=iOS Simulator,name=iPhone 14 Pro'
resultBundle:
description: 'The name of the Xcode result bundle that is passed to xcodebuild. If not defined, the name of the scheme + .xcresult is used.'
required: false
type: string
default: ''
test:
description: 'A flag indicating if the tests of the Xcode project scheme should run'
required: false
Expand Down Expand Up @@ -198,15 +208,20 @@ jobs:
else
XCODECOMMAND="build"
fi
if ${{ inputs.resultBundle }}; then
RESULTBUNDLE=${{ inputs.resultBundle }}
else
RESULTBUNDLE=${{ inputs.scheme }}.xcresult
fi
set -o pipefail \
&& xcodebuild $XCODECOMMAND \
-scheme ${{ inputs.scheme }} \
-sdk iphonesimulator \
-destination "name=iPhone 14 Pro" \
-scheme "${{ inputs.scheme }}" \
-destination "${{ inputs.destination }}" \
$CODECOVERAGEFLAG \
-derivedDataPath ".derivedData" \
-resultBundlePath ${{ inputs.scheme }}.xcresult \
CODE_SIGN_IDENTITY="" \
-resultBundlePath "$RESULTBUNDLE" \
CODE_SIGNING_REQUIRED=NO \
| xcpretty
- name: Fastlane
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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)
#
Expand Down
22 changes: 22 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# 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
#

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Schmiedmayer"
given-names: "Paul"
orcid: "https://orcid.org/0000-0002-8607-9148"
- family-names: "Ravi"
given-names: "Vishnu"
orcid: "https://orcid.org/0000-0003-0359-1275"
- family-names: "Aalami"
given-names: "Oliver"
orcid: "https://orcid.org/0000-0002-7799-2429"
title: "Stanford Biodesign Digital Health Group"
url: "https://github.com/StanfordBDHG/"
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
This source file is part of the Stanford Biodesign for Digital Health open-source project
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)
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
This source file is part of the Stanford Biodesign for Digital Health open-source project
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)
Expand All @@ -10,7 +10,7 @@ SPDX-License-Identifier: MIT

# Contributing Guidelines

Thank you for contributing to the Stanford Biodesign for Digital Health project! We value the time and effort you invest in the open-source project!
Thank you for contributing to one of the Stanford Biodesign Digital Health Group projects! We value the time and effort you invest in the open-source project!

We use [GitHub Discussions](https://docs.github.com/en/discussions) at [https://github.com/orgs/StanfordBDHG/discussions](https://github.com/orgs/StanfordBDHG/discussions) for any discussions about the project.
Please follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md).
Expand Down
7 changes: 4 additions & 3 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<!--
This source file is part of the Stanford Biodesign for Digital Health open-source project
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
-->

# Stanford Biodesign for Digital Health .github Contributors
# Stanford Biodesign Digital Health Group .github Contributors

* [Vishnu Ravi](https://github.com/vishnuravi)
* [Paul Schmiedmayer](https://github.com/PSchmiedmayer)
* [Vishnu Ravi](https://github.com/vishnuravi)
* [Oliver Aalami](https://github.com/aalami5)
4 changes: 2 additions & 2 deletions FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#
# This source file is part of the Stanford Biodesign for Digital Health open-source project
# 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
#

custom: [Stanford Biodesign for Digital Health.stanford.edu]
custom: [Stanford Biodesign Digital Health Group.stanford.edu]
2 changes: 1 addition & 1 deletion LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Stanford Biodesign for Digital Health and the project authors (see CONTRIBUTORS.md)
Copyright (c) 2022 Stanford Biodesign Digital Health Group and the project authors (see CONTRIBUTORS.md)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
94 changes: 91 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,101 @@
<!--
This source file is part of the Stanford Biodesign for Digital Health open-source project
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
-->

# .github
# Stanford Biodesign Digital Health Group

This repository serves as a collection of default community health files, GitHub Action workflows, templates, and information for the Stanford Biodesign Digital Health Group organization.


## GitHub Actions

This repository contains several GitHub Actions that automate and simplify the process of contributing to Stanford Biodesign Digital Health Group-related projects.


### Test Using Xcodebuild or Run Fastlane

Allows GitHub Actions to build complex Swift Packages supporting Apple platforms as well as Xcode projects with a diverse set of requirements ranging from custom commands, xcodebuild, to using Fastlane.
You can learn more about the arguments in the [`xcodebuild-or-fastlane.yml` GitHub Action file](https://github.com/StanfordBDHG/.github/blob/main/.github/workflows/xcodebuild-or-fastlane.yml).

```yml
jobs:
buildandtest:
name: Build and Test Swift Package
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
artifactname: TemplatePackage.xcresult
runsonlabels: '["macOS", "self-hosted"]'
scheme: TemplatePackage
```
### Merge and Upload Coverage Report
Merge and upload code coverage reports to display them on codecov.io.
You can learn more about the arguments in the [`create-and-upload-coverage-report.yml` GitHub Action file](https://github.com/StanfordBDHG/.github/blob/main/.github/workflows/create-and-upload-coverage-report.yml).

```yml
jobs:
uploadcoveragereport:
name: Upload Coverage Report
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: ResultBundle1.xcresult ResultBundle2.xcresult
```

### REUSE

Check that all your source files conform to the REUSE specification.
You can learn more about the arguments in the [`reuse.yml` GitHub Action file](https://github.com/StanfordBDHG/.github/blob/main/.github/workflows/reuse.yml).

```yml
jobs:
reuse_action:
name: REUSE Compliance Check
uses: StanfordBDHG/.github/.github/workflows/reuse.yml@v2
```

### SwiftLint

Ensure that all Swift files conform to the defined style guide.
You can learn more about the arguments in the [`swiftlint.yml` GitHub Action file](https://github.com/StanfordBDHG/.github/blob/main/.github/workflows/swiftlint.yml).

```yml
swiftlint:
name: SwiftLint
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2
```

### Action Tag Release

Small GitHub Action that automatically tags releases based on semantic version tags, essential for GitHub Action repos. E.g., you tag a release for v2.4.2, and the action tags a v2 and v2.4). You can learn more about the arguments in the [`action-release-tag.yml` GitHub Action file](https://github.com/StanfordBDHG/.github/blob/main/.github/workflows/action-release-tag.yml).

```yml
jobs:
releasetag:
name: Tag Release
uses: StanfordBDHG/.github/.github/workflows/action-release-tag.yml@v2
secrets:
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
user: PaulsAutomationBot
```


## Continous Integration Setup

The [ContinousIntegration](https://github.com/StanfordBDHG/ContinousIntegration) repository contains the setup and information about our self-hosted GitHub Action runners that is fitting the GitHub Actions found in this repository.


## Our Research

For more information, check out our website at [biodesigndigitalhealth.stanford.edu](https://biodesigndigitalhealth.stanford.edu).

![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-light.png#gh-light-mode-only)
![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-dark.png#gh-dark-mode-only)

This repository serves as a collection of default community health files, GitHub Action workflows, templates, and information for the Stanford Biodesign for Digital Health organization.
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
This source file is part of the Stanford Biodesign for Digital Health open-source project
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)
Expand Down
Loading

0 comments on commit 0747436

Please sign in to comment.